From 8b713dc2846b93f2dfd6562c1481cca5eca1c7b9 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 8 May 2022 03:48:33 +0200 Subject: Way better vps push script --- .local/bin/vps | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to '.local/bin/vps') 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 -- cgit v1.2.3