LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   incremental backup using tar (http://www.linuxquestions.org/questions/linux-general-1/incremental-backup-using-tar-628992/)

ARsenthil 03-18-2008 01:36 PM

incremental backup using tar
 
I need to implement incremental backup using tar.
I can backup the last modified files using --listed-incremental,But the problem is,it takes backup only the modified files and create archive leaving old datas.How to create oldfiles+newmodified files using --listed-incremental option.


For example i backup the /tmp dir as incremental by,

#tar --create --file=/mnt/a.tar --listed-incremental=/var/log/incr.snar /tmp
at first it takes all files,then i updated the /tmp file for example a dir is created under /tmp ,next time if i tend to give the tar cmd it is only taking /tmp/newdir,leaving empty the older directors,
Please help me.

Thanks.

bigrigdriver 03-19-2008 08:29 AM

Quote:

I can backup the last modified files using --listed-incremental,But the problem is,it takes backup only the modified files and create archive leaving old datas.How to create oldfiles+newmodified files using --listed-incremental option.
Sounds like --listed-incremental is working exactly as it is supposed to work.
Quote:

How to create oldfiles+newmodified files
This is a full backup; not an incremental backup.


All times are GMT -5. The time now is 08:45 AM.