Created
December 31, 2016 20:37
-
-
Save jamii/1a99ad9fbb9d610ea4aa62a48fd4c761 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
#!/bin/bash | |
/usr/local/bin/tarsnap -c \ | |
--cachedir /home/jamie/tarsnap \ | |
--keyfile /home/jamie/tarsnap.key \ | |
-f machine-`date +%Y-%m-%d_%H-%M-%S` \ | |
/home/jamie/tarsnap.key \ | |
/home/jamie/.ssh \ | |
/home/jamie/bin \ | |
/home/jamie/scratch \ | |
/home/jamie/.bashrc \ | |
/home/jamie/jamii.github.com \ | |
/home/jamie/tax \ | |
/home/jamie/.atom \ | |
/home/jamie/.mozilla/firefox/ygdanzco.default/places.sqlite \ | |
/home/jamie/.mozilla/firefox/ygdanzco.default/bookmarkbackups \ | |
/home/jamie/.mozilla/firefox/ygdanzco.default/key3.db \ | |
/home/jamie/.mozilla/firefox/ygdanzco.default/logins.json3 \ | |
/home/jamie/.mozilla/firefox/ygdanzco.default/prefs.js \ | |
/home/jamie/.mozilla/firefox/ygdanzco.default/secmod.db \ |
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
jamie@machine:~$ cat /etc/cron.daily/backup | |
#!/bin/bash | |
su jamie -c /home/jamie/bin/backup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment