summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-08 03:48:33 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-08 03:48:33 +0200
commit8b713dc2846b93f2dfd6562c1481cca5eca1c7b9 (patch)
tree8f6696ec33c2731d42a61e22dcc95e5cdd002081 /.local/bin
parentupdate (diff)
downloaddotfiles-bsd-8b713dc2846b93f2dfd6562c1481cca5eca1c7b9.tar.gz
dotfiles-bsd-8b713dc2846b93f2dfd6562c1481cca5eca1c7b9.tar.bz2
dotfiles-bsd-8b713dc2846b93f2dfd6562c1481cca5eca1c7b9.tar.xz
dotfiles-bsd-8b713dc2846b93f2dfd6562c1481cca5eca1c7b9.tar.zst
dotfiles-bsd-8b713dc2846b93f2dfd6562c1481cca5eca1c7b9.zip
Way better vps push script
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/vps31
1 files changed, 17 insertions, 14 deletions
diff --git a/.local/bin/vps b/.local/bin/vps
index 78cffc2..0a11344 100755
--- a/.local/bin/vps
+++ b/.local/bin/vps
@@ -1,44 +1,47 @@
#!/bin/sh
-serv_addr="root@95.179.223.82"
+serv_addr="95.179.223.82"
# joe-www
-rsync -urvhP --delete-after \
+rsync -rlptDvh --progress --delete-after \
--exclude '.*' \
--exclude 'README.org' \
--exclude 'LICENSE' \
--exclude 'asm-example.cgi' \
"$HOME"/dev/web/joe-www/ \
- $serv_addr:/usr/local/www/jozan
+ root@$serv_addr:/usr/local/www/jozan
# joe-gemini
-rsync -urvhP --delete-after \
+rsync -rlptDvh --progress --delete-after \
--exclude '.*' \
--exclude 'README.org' \
--exclude 'LICENSE' \
"$HOME"/dev/web/joe-gemini/ \
- $serv_addr:/usr/local/gemini
+ root@$serv_addr:/usr/local/gemini
# gitjoe-cgit
-rsync -urvhP \
+rsync -rlptDvh --progress --delete-after \
+ --exclude 'cgit.cgi' \
--exclude '.*' \
--exclude 'README.org' \
--exclude 'LICENSE' \
"$HOME"/dev/web/gitjoe-cgit/ \
- $serv_addr:/usr/local/www/gitjoe
+ root@$serv_addr:/usr/local/www/gitjoe
+rsync -lptDvh --progress \
+ "$HOME"/dev/perl/gitjoe-scripts/git-ro-daemon.csh \
+ git-ro@$serv_addr:/usr/local/git/git-ro
# joe-scripts
-rsync -urvhP --delete-after \
+rsync -rlptDvh --progress --delete-after \
--exclude '.*' \
--exclude 'README.org' \
--exclude 'LICENSE' \
"$HOME"/dev/perl/joe-scripts/ \
- $serv_addr:/root/bin/joe
-
+ root@$serv_addr:/root/bin/joe
# gitjoe-scripts
-rsync -urvhP --delete-after \
+rsync -rlptDvh --progress --delete-after \
--exclude '.*' \
--exclude 'README.org' \
--exclude 'LICENSE' \
"$HOME"/dev/perl/gitjoe-scripts/src/ \
- $serv_addr:/root/bin/gitjoe
+ root@$serv_addr:/root/bin/gitjoe
# backups
-rsync -uvhP "$XDG_CONFIG_HOME"/newsboat/urls $serv_addr:/root/backup/apps/newsboat
-rsync -uvhP "$HOME"/.mozilla/firefox/jozan_privacy.tar.xz $serv_addr:/root/backup/apps/firefox
+rsync -lptDvh --progress "$XDG_CONFIG_HOME"/newsboat/urls root@$serv_addr:/root/backup/apps/newsboat
+rsync -lptDvh --progress "$HOME"/.mozilla/firefox/jozan_privacy.tar.xz root@$serv_addr:/root/backup/apps/firefox