LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2006, 05:11 AM   #1
therealbeale
LQ Newbie
 
Registered: Oct 2003
Location: Bristol
Distribution: Mandrake 10.1
Posts: 2

Rep: Reputation: 0
Tar won't correctly restore from incremental backups


Hi,

I've been trying to use tar (GNU tar 1.15) to do incremental backups. My test directory, BKTEST, contains 2 directories, Test1 and Test2. Test2 contains 4 files.

I can successfully perform a full backup of BKTEST with this:

Code:
tar --create -P --listed-incremental=/var/log/BK_test.snar --file full.tar "/home/therealbeale/BKTEST/"
However, if I then move the contents of Test2 into Test1 and delete the Test2 folder and then do an incremental backup, the files are not restored correctly when I extract the archives. What am I doing wrong?

I do the incremental backup with:

Code:
tar --create -P --listed-incremental=/var/log/BK_test.snar --file inc1.tar "/home/therealbeale/BKTEST/"
and then restore with:

Code:
tar --extract --verbose --listed-incremental=/dev/null -f full.tar
tar --extract --verbose --listed-incremental=/dev/null -f inc1.tar
The directory structure is correctly restored, but there are no files restored into Test1.

Can anyone help me make this work? Is this a bug? Is tar not to be trusted?

Any help would be appreciated.

Cheers

Chris
 
Old 08-31-2006, 10:02 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Tar can certainly be trusted. You might have luck with commands dump and restore. However dump and restore are mainly used for full directories or system backups while tar is great for single directories and more.

http://www.linux.com/guides/solrhe/S...29sec305.shtml This may also help. It does assume that you have a tape drive what you can always change around the command parameters to suite your needs.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Create Incremental Snapshot-style Backups With rSync And SSH LXer Syndicated Linux News 0 08-13-2006 08:21 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
Incremental tar backups Pepe Linux - General 5 03-18-2002 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 AM.

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