LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-15-2002, 05:51 AM   #1
Pepe
LQ Newbie
 
Registered: Mar 2002
Posts: 3

Rep: Reputation: 0
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
 
Old 03-15-2002, 09:47 AM   #2
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
Isn't that what "--newer" does?

What about "--update" ??
 
Old 03-15-2002, 09:57 AM   #3
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
http://www.gnu.org/manual/tar/html_mono/tar.html
 
Old 03-15-2002, 04:26 PM   #4
Pepe
LQ Newbie
 
Registered: Mar 2002
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 03-15-2002, 04:35 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
find /backupdir -anewer lastbackup.id -print -type f > list.txt
 
Old 03-18-2002, 03:31 AM   #6
Pepe
LQ Newbie
 
Registered: Mar 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
incremental backup using tar eaglegst Linux - Software 9 02-01-2009 05:00 PM
Are incremental backups possible/safe? imagirlgeek Linux - Newbie 4 08-25-2004 04:11 PM
incremental & differential backups to CD? SheldonPlankton Linux - General 0 06-30-2004 05:33 PM
Rsync for incremental backups? Phaethar Linux - Software 3 12-04-2003 01:27 PM
tar --newer .. or --list-incremental pfunk Linux - Software 1 06-21-2002 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration