Incremental tar backups
Hello to all :
I have a question with tar backuping to a tape. How I make an incremental backup (all files created/modified since a given time) with tar ? I know how to make a differential one, with tar cvzf /dev/tape --newer m/d/y /backupdir. It is possible ? Thanks to all of you in advance |
Isn't that what "--newer" does?
What about "--update" ?? |
|
Well, the fact is ... previously I used this system :
find /backupdir -anewer lastbackup.id -print > list.txt For example, the list.txt, resulted from the find output, is like this one : /backupdir/users/john/work1 /backupdir/users/john/work1/work1.psd /backupdir/users/john/letters /backupdir/users/john/letters/letter1.txt /backupdir/users/john/letters/letter2.txt tar cvzf archive -T list.txt The problem is that when I run the above tar command, it makes the tar archive with ALL the entire work1 directory and ALL entire letters directory, when the only modified files are work1.psd, and letter1.txt and letter2.txt (Those are examples) Any idea on how to remove the directory lines from the find output, only leaving the lines with a path/filename to avoid tar backup the entire directory ? Thanks in advance, Pepe. |
find /backupdir -anewer lastbackup.id -print -type f > list.txt
|
Thank you very much.
|
All times are GMT -5. The time now is 07:54 PM. |