LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   help with tar incremental (http://www.linuxquestions.org/questions/linux-general-1/help-with-tar-incremental-481253/)

alcor 09-07-2006 08:34 AM

help with tar incremental
 
Hi !
I want to make incrementals backups.

So I do:
tar -g /var/snap -C /var/www -czf backup.tar.gz .

The next day, when I execute the same (only change the name of the file) it backup everything again.

If I execute 1 tar after the first it works fine ... but in dicfferents days .. it doesnt work ...

How I have to do ?? perhaps touch <CURRENT DATE> /var/snap before the tar ??

thanx for any help

kilgoretrout 09-07-2006 10:21 AM

I haven't used tar for incremental backups for some time. Instead I've switched to rdiff-backup:

http://www.nongnu.org/rdiff-backup/index.html

It's very nice and very easy to use. It's also widely available in most distro repos. You might want to take a look at it.


All times are GMT -5. The time now is 03:24 PM.