4

I have my home folder with a few GB.

Is it possible to run tar on it, create a home.tar.gz, and then for changed files, it creates home1.tar.gz only with modified files from previous tar (thus being an incremental backup)?

I would like to check the resulting checksum files and export them as well like home.md5, home1.md5, etc. (I know this could be another process, but interesting as well).

2 Answers2

6

Yes you can, here is a tutorial to do just that.

Kyle Brandt
  • 85,693
2

What you describe is very similar to the way backup2l operates. You declare a home directory to backup and the 'backup scheme' (basically, the levels of backups).

The end result is a set of tar.gz files with incremental backups. You don't even need the backup2l tool to restore files (although is very convenient).

Optionally it can generate md5 checksums (option -m).

backup2l is a bash script, so you can make it fit your needs.

chmeee
  • 7,548