Creating Differential Backups with Tar
Hey guys,
Im trying to figure out how to create differential backups using the tar command. I have looked in the man pages and I know that the --diff option is primarily used for this task. However I just having problems figuring the syntax for this. I have tried tar --diff /backup1 -f /backup2 /home and variations of it but clearly having problems. In addition, I was wondering if the timestamps option (-g) would work by just creating 1 timestamp and comparing each day of the week with that particular timestamp until a full backup has to be completed. Something like: tar cv -g /snapshot -f /backup /home However wouldnt the snapshot file continue to be updated when I run a new backup command thus resulting back to incremental? Hope someone can help! Thanks in advanced. |
A differential backup will backup changes since the first full backup.
You didn't enough of Section 5.2 of the tar info manual. Just after the instructions to create an incremental backup (the first incremental backup), it explains how to create a subsequent level.1 (differential) backup: Code:
The created archive `archive.2.tar' will contain only these three |
All times are GMT -5. The time now is 01:37 AM. |