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.sh
diff --git
a/backup.sh
b/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
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
# specific config stuff
@@
-244,7
+250,7
@@
fi
# end! umounting nfs shared backup directory
# 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
echo "umounting nfs backup - dir"
cd $HOME && umount $local_mount
fi