Skip to content

Instantly share code, notes, and snippets.

@hmans
Created February 18, 2013 10:28
Show Gist options
  • Save hmans/4976478 to your computer and use it in GitHub Desktop.
Save hmans/4976478 to your computer and use it in GitHub Desktop.

Revisions

  1. hmans created this gist Feb 18, 2013.
    5 changes: 5 additions & 0 deletions fullbackup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # 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 .