X-Git-Url: https://www.hackdaworld.org/gitweb/?p=scripts%2Fscripts.git;a=blobdiff_plain;f=backup.sh;h=07a71c0d66787b2c027e48c97e97bc65264a7a73;hp=08019f01c55c2e005fe6fc728e9c2c12d718dc78;hb=HEAD;hpb=639e6b035157d1c8de8e50eaae4526b51eb97426 diff --git a/backup.sh b/backup.sh index 08019f0..07a71c0 100755 --- 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