#!/bin/sh

serv_addr="root@jozanofastora.xyz"

# jozanofastora-www
rsync -urvhP --delete-after \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  --exclude 'asm-example.cgi' \
	  "$HOME"/dev/web/jozanofastora-www/ \
	  $serv_addr:/usr/local/www/jozan
# gitjoe-cgit
rsync -urvhP \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  "$HOME"/dev/web/gitjoe-cgit/ \
	  $serv_addr:/usr/local/www/gitjoe
# jozanofastora-gemini
rsync -urvhP --delete-after \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  "$HOME"/dev/web/jozanofastora-gemini/ \
	  $serv_addr:/usr/local/gemini
# jozanofastora-scripts
rsync -urvhP --delete-after \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  "$HOME"/dev/perl/jozanofastora-scripts/ \
	  $serv_addr:/root/scripts
# backups
rsync -urvhP "$HOME/.config/newsboat/urls" $serv_addr:/root/backup/apps/newsboat