|
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.
|