Skip to content

Instantly share code, notes, and snippets.

@hmans
Created February 18, 2013 10:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmans/4976478 to your computer and use it in GitHub Desktop.
Save hmans/4976478 to your computer and use it in GitHub Desktop.
# create a /backups directory
mkdir /backups
# tar everything except system directories (and the backups directory itself)
tar -cvpf /backups/fullbackup.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment