projects
/
scripts
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4676ee0
)
added hdw backup script
author
hackbard
<hackbard>
Wed, 25 Apr 2007 07:58:48 +0000
(07:58 +0000)
committer
hackbard
<hackbard>
Wed, 25 Apr 2007 07:58:48 +0000
(07:58 +0000)
backup_hackdaworld.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/backup_hackdaworld.sh
b/backup_hackdaworld.sh
new file mode 100755
(executable)
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
+