BackupPC-users

Re: [BackupPC-users] Avoiding pitfalls of tar

2011-02-23 20:50:57
Subject: Re: [BackupPC-users] Avoiding pitfalls of tar
From: John Goerzen <jgoerzen AT complete DOT org>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 24 Feb 2011 01:49:06 +0000 (UTC)
John Goerzen <jgoerzen <at> complete.org> writes:

>
http://backuppc.sourceforge.net/faq/limitations.html#incremental_backups_might_not_be_accurate

> there is documented a limitation of BackupPC incrementals with tar: 
> since it uses timestamps only, it may miss if someone does something 
> like unpack a ZIP file that contains files with timestamps in the past. 
>   It also won't note if files were deleted.

I'm beginning to think that the documentation here is wrong.  I will do some
testing tomorrow.  I think it is right regarding the deleted files, but wrong
regarding things like recently-unpacked ZIP files with timestamps in the past. 
GNU tar's manual says that --newer looks at "files whose data modification or
status change times are newer than the DATE given".  In other words, it examines
both mtime and ctime.  If my understanding is correct, when something like an
old ZIP file is unpacked, unzip will set the mtime, but in so doing forces the
ctime to be updated to the current time.  Therefore, assuming clocks are not
wildly out of sync, this should pose no problem.  Right?

I will run some tests to validate this assumption tomorrow.

If it pans out, then it may just make sense for me to use tar instead of rsync
for all local hosts.  The deleted files issue is not particularly critical for
me.  I am then just left with the bug that doesn't let me restore, using the
CGI, from a backup made on a machine using tar to a machine using rsync.  I ran
into the problem at
http://news.gmane.org/find-root.php?group=gmane.comp.sysutils.backup.backuppc.general&article=23890
which sadly had no responses.

-- John



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>