different backups for primary and secondary
[scripts/scripts.git] / backup.sh
index 08019f0..07a71c0 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -111,6 +111,12 @@ if [ -f /etc/X11/xorg.conf ] ; then
        cp /etc/X11/xorg.conf* ./etc/X11
 fi
 
+# crontabs
+if [ -d /var/spool/cron/crontabs ] ; then
+       echo "copying crontab files"
+       cp -r /var/spool/cron/crontabs .
+fi
+
 
 # specific config stuff
 
@@ -244,7 +250,7 @@ fi
 
 
 # end! umounting nfs shared backup directory
-if [ "$mounted" = "0" ] ; then
+if [ "$mounted" = "1" ] ; then
        echo "umounting nfs backup - dir"
        cd $HOME && umount $local_mount
 fi