fix major hoseage in building
[feisty_meow.git] / scripts / archival / serene_backer_upper.sh
index 9ac48ac508fe341ab0769475d7109ad154d3e14d..b6dec6d9eab170f3835f303223fabbcbac17cfd3 100644 (file)
@@ -18,7 +18,7 @@ function check_if_failed()
 # if there was a failure detected.
 function exit_if_failed()
 {
-  check_if_failed
+  check_if_failed $*
   if [ $? -ne 0 ]; then
     exit 1
   fi
@@ -51,11 +51,11 @@ function synch_to_backup()
 # main body of script...
 
 # just undo it first, to try to be sure we know we are mounted properly later.
-umount /z/backup &>/dev/null
+#NO LONGER USING MOUNT: umount /z/backup &>/dev/null
 
 # now saddle up the backup.
-mount /z/backup/
-exit_if_failed "mounting backup folder"
+#NO LONGER USING MOUNT: mount /z/backup/
+#NO LONGER USING MOUNT: exit_if_failed "mounting backup folder"
 
 # we should always be synching to an existing set in there.  make sure they exist.
 # for the first ever backup, this is not a good check...
@@ -68,17 +68,18 @@ synch_to_backup /etc /z/backup/etc/
 
 ##############
 
-for subdir in albums deepcore drupal fred git sharedspam sim svn trac ; do 
+for subdir in fred/Maildir git sharedspam svn trac www-data ; do 
   synch_to_backup /home/$subdir /z/backup/home/$subdir
 done
 
 ##############
 
 synch_to_backup /var/lib/mailman /z/backup/var/lib/mailman
+synch_to_backup /var/lib/mysql /z/backup/var/lib/mysql
 
 ##############
 
-umount /z/backup/
-exit_if_failed "unmounting backup folder"
+#NO LONGER USING MOUNT: umount /z/backup/
+#NO LONGER USING MOUNT: exit_if_failed "unmounting backup folder"