Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tarsnap-backup.sh
#! /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
You can’t perform that action at this time.