]> hackdaworld.org Git - scripts/scripts.git/commitdiff
added crontab backups
authorhackbard <hackbard>
Sat, 15 Jan 2005 20:40:13 +0000 (20:40 +0000)
committerhackbard <hackbard>
Sat, 15 Jan 2005 20:40:13 +0000 (20:40 +0000)
backup.sh

index f9b0b52bcef33f1e04f3ca8a309ce71bf18fdf58..07a71c0d66787b2c027e48c97e97bc65264a7a73 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