LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-18-2008, 01:36 PM   #1
ARsenthil
LQ Newbie
 
Registered: Nov 2006
Posts: 23

Rep: Reputation: 15
incremental backup using tar


I need to implement incremental backup using tar.
I can backup the last modified files using --listed-incremental,But the problem is,it takes backup only the modified files and create archive leaving old datas.How to create oldfiles+newmodified files using --listed-incremental option.


For example i backup the /tmp dir as incremental by,

#tar --create --file=/mnt/a.tar --listed-incremental=/var/log/incr.snar /tmp
at first it takes all files,then i updated the /tmp file for example a dir is created under /tmp ,next time if i tend to give the tar cmd it is only taking /tmp/newdir,leaving empty the older directors,
Please help me.

Thanks.
 
Old 03-19-2008, 08:29 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,768

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
I can backup the last modified files using --listed-incremental,But the problem is,it takes backup only the modified files and create archive leaving old datas.How to create oldfiles+newmodified files using --listed-incremental option.
Sounds like --listed-incremental is working exactly as it is supposed to work.
Quote:
How to create oldfiles+newmodified files
This is a full backup; not an incremental backup.
 
  


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
using tar --listed-incremental as backup lrt Linux - Software 12 06-19-2009 07:55 AM
incremental backup using tar eaglegst Linux - Software 9 02-01-2009 05:00 PM
Incremental Backup (tar command) maginotjr Slackware 4 07-21-2005 01:04 AM
Incremental backup script - Tar problem joshheald Linux - Software 1 09-28-2004 10:02 AM
Getting date format right in tar incremental backup jonr Linux - Software 3 08-19-2004 09:53 AM


All times are GMT -5. The time now is 04:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration