projects
/
scripts
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
different backups for primary and secondary
[scripts/scripts.git]
/
backup_hackdaworld.sh
diff --git
a/backup_hackdaworld.sh
b/backup_hackdaworld.sh
index
5545c28
..
121fca3
100755
(executable)
--- a/
backup_hackdaworld.sh
+++ b/
backup_hackdaworld.sh
@@
-1,6
+1,13
@@
REMOTE=sage.physik.uni-augsburg.de:/scratch/hackdaworld-${HOSTNAME}
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"
+
+if [ "$HOSTNAME" = "primary" ] ; then
+ VARDIRS="/var/mail /var/spool /var/www /usr/lib/cgi-bin"
+ ROOTDIRS="/etc /chroot /home /root"
+else
+ VARDIRS=""
+ ROOTDIRS="/etc /home /root"
+fi
+
for dir in $VARDIRS; do
echo "syncing $dir ..."
for dir in $VARDIRS; do
echo "syncing $dir ..."