From de594e8079466c8423325d206c295f3b0ff8d206 Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 25 Apr 2007 07:58:48 +0000 Subject: [PATCH] added hdw backup script --- backup_hackdaworld.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 backup_hackdaworld.sh 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 + -- 2.39.2