From: hackbard Date: Wed, 25 Apr 2007 07:58:48 +0000 (+0000) Subject: added hdw backup script X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de594e8079466c8423325d206c295f3b0ff8d206;p=scripts%2Fscripts.git added hdw backup script --- diff --git a/backup_hackdaworld.sh b/backup_hackdaworld.sh new file mode 100755 index 0000000..5545c28 --- /dev/null +++ b/backup_hackdaworld.sh @@ -0,0 +1,14 @@ +REMOTE=sage.physik.uni-augsburg.de:/scratch/hackdaworld-${HOSTNAME} +VARDIRS="/var/mail /var/spool /var/www /usr/lib/cgi-bin" +ROOTDIRS="/etc /chroot /home /root" + +for dir in $VARDIRS; do + echo "syncing $dir ..." + rsync -az -e "ssh -p 3389" $dir $REMOTE/var +done + +for dir in $ROOTDIRS; do + echo "syncing $dir ..." + rsync -az -e "ssh -p 3389" $dir $REMOTE +done +