Tar differential backup | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Tar differential backup

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-10-2010
jelloir jelloir is offline
Registered User
 
Join Date: Sep 2009
Last Activity: 11 July 2012, 7:29 PM EDT
Location: Rye, Victoria, AU
Posts: 49
Thanks: 12
Thanked 0 Times in 0 Posts
Tar differential backup

I am backing up some data to an NTFS formatted backup drive. I have to preserve the Unix permissions of the data being backed up and therfore use backup into a tar file.

I would like to backup the differnential data in the tar file similiar to how Rsync works so as to save on backup time as it currently takes a long time to do a full backup.

Can this be achieved using tar?

Thanks
Sponsored Links
    #2  
Old 01-11-2010
quirkasaurus's Avatar
quirkasaurus quirkasaurus is offline Forum Advisor  
Registered User
 
Join Date: Jan 2009
Last Activity: 7 July 2012, 10:53 AM EDT
Location: canton, michigan
Posts: 483
Thanks: 0
Thanked 8 Times in 8 Posts
Well... how about a combo of tar and ksh?

Create a list of the contents of your tar files at the time of their creation.
tar tvf tar_file > tar_info.dat
Compare the time stamp and/or size.
Modify the new tar list.

Then, when creating your list of files to include in tar, simply verify that the time stamp is different.

That is:

Code:
find . -type f -ls |
while a b c d e f g mon mday hours file_nm ; do

  nawk '$8==file_nm {print $4, $5, $6;}' file_nm=file_nm | read tar_mon tar_mday tar_hours

  if [[ $tar_mon != $mon ||
        $tar_mday != $mday ||
       $tar_hours != hours ]]; then
        print $file_nm
  fi

done >> new_tar_list

perhaps some tweakin may be in order.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Differential Equations rapo High Performance Computing 3 01-12-2010 03:19 PM
Backup to SCSI Tape Backup aborts zionpc SCO 4 12-07-2007 06:47 PM
Check backup file size on backup tape ayhanne UNIX for Dummies Questions & Answers 0 10-25-2007 11:41 AM



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