Created
August 3, 2014 00:47
-
-
Save xxdesmus/65ef0b3bc5e0be82f310 to your computer and use it in GitHub Desktop.
tarsnap-backup.sh
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/bash | |
echo `date +%F\ %T`: Beginning back up of $2 >> /var/log/tarsnap/backupscript.log | |
/usr/local/bin/tarsnap -c -f $1-`date +%F` $2 &>> /var/log/tarsnap/backupscript.log | |
echo `date +%F\ %T`: Completed back up of $2 >> /var/log/tarsnap/backupscript.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment