summaryrefslogtreecommitdiffstats
path: root/.local/bin/vps
blob: 231d1d305f4e8b5be4cf4d709b760b2c83375834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

serv_addr="95.179.223.82"

# joe-www
rsync -avh --no-o --no-g --progress --delete-after \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  --exclude 'asm-example.cgi' \
	  "$HOME"/dev/web/joe-www/ \
	  root@$serv_addr:/var/jail/www/usr/local/www/jozan
# joe-gemini
rsync -avh --no-o --no-g --progress --delete-after \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  "$HOME"/dev/web/joe-gemini/ \
	  root@$serv_addr:/var/jail/www/usr/local/gemini
# gitjoe-cgit
rsync -avh --no-o --no-g --progress --delete-after \
	  --exclude 'cgit.cgi' \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  "$HOME"/dev/web/gitjoe-cgit/ \
	  root@$serv_addr:/usr/local/www/gitjoe
rsync -avh --no-o --no-g --progress \
	  "$HOME"/dev/perl/gitjoe-scripts/git-ro-daemon.csh \
	  git-ro@$serv_addr:/usr/local/git/git-ro
# joe-scripts
rsync -avh --no-o --no-g --progress --delete-after \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  "$HOME"/dev/perl/joe-scripts/ \
	  root@$serv_addr:/root/bin/joe
# gitjoe-scripts
rsync -avh --no-o --no-g --progress --delete-after \
	  --exclude '.*' \
	  --exclude 'README.org' \
	  --exclude 'LICENSE' \
	  "$HOME"/dev/perl/gitjoe-scripts/src/ \
	  root@$serv_addr:/root/bin/gitjoe
# backups
rsync -avh --no-o --no-g --progress "$XDG_CONFIG_HOME"/newsboat/urls root@$serv_addr:/root/backup/apps/newsboat
rsync -avh --no-o --no-g --progress --delete-after "$XDG_DATA_HOME"/calcurse/ root@$serv_addr:/root/backup/apps/calcurse
rsync -avh --no-o --no-g --progress "$XDG_DATA_HOME"/abook/addressbook root@$serv_addr:/root/backup/apps/abook