Created
February 10, 2014 15:55
-
-
Save joecannatti/8918358 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
backup-sys () | |
{ | |
sudo tar cvfJ backup.tar.xz --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/data} /; | |
gpg --encrypt --recipient "Joe Cannatti" backup.tar.xz; | |
mv backup.tar.xz.gpg dropbox/Dropbox/; | |
rm -rf backup.tar.xz | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment