- backup.sh
simple script making backups of important files and data.
+- backup_hackdaworld.sh
+ simple rsync script to do backups of hackdaworld.org & co
+
- present_hdw_scripts.sh
small script to copy the hdw-linux scripts on my http server
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 ..."