LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Incremental tar backups (https://www.linuxquestions.org/questions/linux-general-1/incremental-tar-backups-16317/)

Pepe 03-15-2002 05:51 AM

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

Sixpax 03-15-2002 09:47 AM

Isn't that what "--newer" does?

What about "--update" ??

rshaw 03-15-2002 09:57 AM

http://www.gnu.org/manual/tar/html_mono/tar.html

Pepe 03-15-2002 04:26 PM

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.

acid_kewpie 03-15-2002 04:35 PM

find /backupdir -anewer lastbackup.id -print -type f > list.txt

Pepe 03-18-2002 03:31 AM

Thank you very much.


All times are GMT -5. The time now is 07:54 PM.