Created
April 3, 2014 20:58
-
-
Save jamesog/9962780 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TarsnapArgs: | |
ExcludeFile: /root/crons/tarsnap.exclude | |
BackupDirs: | |
- /boot | |
- /etc | |
- /home | |
- /root | |
- /usr/local/etc | |
- /var/log | |
- /data/jail/boxbackup/etc | |
- /data/jail/boxbackup/data/svn | |
- /data/jail/boxbackup/data/trac | |
- /data/jail/boxbackup/usr/home | |
- /data/jail/boxbackup/usr/local/etc | |
KeepWeeks: 5 | |
KeepMonths: 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/data/jail/boxbackup/usr/home/*/trunk | |
/home/*/tmp/ | |
/home/jamesog/boxbackup | |
/home/jamesog/cvs | |
/home/jamesog/restore | |
/home/jamesog/wildfire | |
/home/jamesog/zports | |
/home/ncvs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Script to run tarsnap nightly | |
# | |
# Created: 2011-03-09 | |
LOG=/var/log/tarsnap.log | |
echo "$(date +"%Y-%m-%d %H:%M:%S") >>> Commencing tarsnap_nightly" | tee -a $LOG | |
/root/bin/tsm -c /root/.tsmrc_nightly nightly >> $LOG 2>&1 | |
rc=$? | |
echo "$(date +"%Y-%m-%d %H:%M:%S") >>> Finished tarsnap_nightly" | tee -a $LOG | |
echo "$(date +"%Y-%m-%d %H:%M:%S") >>> Return code: $rc" | tee -a $LOG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment