Bacula-users

Re: [Bacula-users] Handle files that have st_ctime changed often in bacula

2014-12-05 08:49:53
Subject: Re: [Bacula-users] Handle files that have st_ctime changed often in bacula
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 5 Dec 2014 13:46:58 GMT
>>>>> On Thu, 4 Dec 2014 16:19:51 +0100, Sieu Truc said:
> 
> Hello,
> 
> I have a problem when bacula tried to backup a folder that contains some
> files changed often.
> 
> For example: i backup the folder /var/samba
> 
> And for some reason, some big files in this folder are accessed by other
> programs and therefore their attribute "chang" (st_atime) is changed.

Do you mean st_ctime changes?

Are you saying that only the st_ctime changes, but the file contents does not
change?


>                                                                       As a
> consequence of that, bacula backups that file in the following incremental
> backup.
> 
> 
> The final result is that those such files eat up all of my disk space.
> 
> In my opinion, i have 2 ways to solve that problem but i dont know if
> they're feasible.
> 1) Do a full backup, but incremental backup don't include those files .  Is
> it possible to create a fileset for a full backup and another fileset for
> the incrementals.for that case ?

No.  You have to use the same fileset for both full and incrementals backups,
otherwise Bacula treats them as separate


> 2) In the fileset, those files will be treated in a different way like the
> configuation below:
> 
> FileSet {
>         Name = "fs_samba_system"
> 
>     File = /var/samba
>         Include {
>                 Options {
>                         signature = SHA1
>                         onefs = no
>             Wildfile = "*badFile.pdf"
>                   Exclude = yes
>                 }
>         }
>     Include {
>         File = /var/samba
>         Options {
>             WildFile = "*badFile.pdf"
>             Signature = SHA1
>             mtimeonly=yes
>         }
>         Options {
>             Exclude = yes
>             RegexFile = ".*"
>         }
>     }
> 
> } Is it right for what i described above ?
> 
> and is there another better solution ?

That will probably work.

__Martin

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

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