Skip to content

Instantly share code, notes, and snippets.

@joecannatti
Created February 10, 2014 15:55
Show Gist options
  • Save joecannatti/8918358 to your computer and use it in GitHub Desktop.
Save joecannatti/8918358 to your computer and use it in GitHub Desktop.
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