Bacula-users

Re: [Bacula-users] does Bacula detect file renames?

2008-08-29 10:34:45
Subject: Re: [Bacula-users] does Bacula detect file renames?
From: Martin Simmons <martin AT lispworks DOT com>
To: dan AT langille DOT org
Date: Fri, 29 Aug 2008 15:34:01 +0100
>>>>> On Fri, 29 Aug 2008 09:34:02 -0400, Dan Langille said:
> 
> Tomasz Chmielewski wrote:
> > I have a couple of users which sporadically edit video files.
> > 
> > These files can take several hundred megabytes and are also subject to 
> > backup.
> > 
> > The thing is, users often move these files, i.e. from directory A to 
> > directory B. And copy to directory C two days later. The next day, they 
> > change files name from movie_a.avi to new_commercial.avi.
> > 
> > All these file renames/copying/moving make a big problem for our current 
> > backup setup - the files are transferred again and again over slow 
> > Internet, although files didn't change and their checksums are still the 
> > same.
> > 
> > 
> > Can Bacula deal with file renames, copying (their time stamp can 
> > differ), moving etc.?
> 
> Bacula will backup everything in a Full backup.
> 
> For the next Incremental or Differential, it uses mtime.  That is, the 
> last time the file was modified.  If the mtime has not changed, the file 
> will not be backed up, regardless of name.
> 
> So, for your example: if the file is copied, mtime [usually] changes. 
> So it will be included in the next inc/diff backup.  Renaming a file 
> does not change mtime.  Therefore the renamed file will not be included 
> in the next inc/diff backup.

That's not quite true, because many unix filesystems change the ctime when you
rename a file, so that change will also cause it to be backed up again.

__Martin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users