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