Incremental Backup for Ubuntu

The command :

tar -cvfz -X excludeList -g 20150407.snar 20150407-full.tar.gz ~

tar-cvfz – creates all the files.

-X excludeList – creates a folder where one can exclude the files that need not be backed up.

-g .snar – this is the command used for incremental backup.

.tar.gz ~ – create .gz files which can be extracted later

  • At first do a full blind backup of all your files.
  • Then for the next backup, create a new .snar file and copy the old .snar to the new one.