Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Tar differential backup

UNIX for Dummies Questions & Answers

Thread Tools Search this Thread Display Modes
Old Unix and Linux 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?

Sponsored Links
Old Unix and Linux 01-11-2010
quirkasaurus's Unix or Linux Image
quirkasaurus quirkasaurus is offline Forum Advisor  
Registered User
Join Date: Jan 2009
Last Activity: 9 September 2015, 11:46 AM EDT
Location: canton, michigan
Posts: 486
Thanks: 0
Thanked 10 Times in 10 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:

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

done >> new_tar_list

perhaps some tweakin may be in order.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 03:31 AM.