The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Simple Backup 1.1 (Default branch) iBot Software Releases - RSS News 0 12-26-2007 03:40 PM
Script to Find Diff from two folders gkrishnag UNIX for Advanced & Expert Users 2 08-01-2006 02:14 AM
perl package directories - what if the script is diff DIR to the one contain *.pm? gusla Shell Programming and Scripting 1 11-23-2004 08:32 PM
diff 2 files; output diff's to 3rd file blt123 Shell Programming and Scripting 2 05-28-2002 12:29 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-29-2008
protienplant protienplant is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 4
Post Diff. Backup Script Using TAR. Should be simple.

I'm specifically trying to find help or insight on using the --incremental ('-G') option for creating a tar. Please resist the urge to tell me to use --listed-incremental ('-g') option. That's fairly well documented in the GNU tar manual. GNU tar 1.19

This is what the manual does say in section 5.2:
Quote:
The option ‘--incremental’ (‘-G’) .... When used with ‘--create’ option, it creates an incremental archive without creating snapshot file. Thus, it is impossible to create several levels of incremental backups with ‘--incremental’ option.
What I'm trying to do is write a small backup script that will create one tar file that contains all the changes since a level 0 tar dump of the directory I'm backing up. That way, I save time and resources only backing up new changes. Since I have no interest in creating multiple levels of incremental backups, it seems like the --incremental (-G) option is better suited to my task. And it would be nice not to have to hassle with a snapshot file if it's unnecessary.

Also, it appears that using the -N option isn't recommended for incremental/differential backups. From section 6.8 Operating Only on New Files:
Quote:
Please Note: ‘--after-date’ and ‘--newer-mtime’ should not be used for incremental backups. See section Using tar to Perform Incremental Dumps, for proper way of creating incremental backups.
Help is much appreciated.
Gabe
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0