Bacula-users

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

2008-08-30 11:48:15
Subject: Re: [Bacula-users] does Bacula detect file renames?
From: Dan Langille <dan AT langille DOT org>
To: Timo Neuvonen <timo-news AT tee-en DOT net>
Date: Sat, 30 Aug 2008 11:47:45 -0400
Timo Neuvonen 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.
>>
> Just out of curiosity: what information Bacula uses to recognize a renamed 
> file, in addition to mtime?

I am not sure what you mean by "recognize".  Bacula does do anything 
like that (here I am giving you an answer based on not knowing what you 
mean).

 > Or is mtime guaranteed (in all filesystems) to
 > be unique, so there couldn't be another file with the same mtime?

mtime is not unique.  Multiple files can have the same mtime.

-------------------------------------------------------------------------
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