Bacula-users

Re: [Bacula-users] backing up automounted FS

2016-03-31 08:49:31
Subject: Re: [Bacula-users] backing up automounted FS
From: Josh Fisher <jfisher AT pvct DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 31 Mar 2016 08:40:19 -0400


On 3/30/2016 11:42 AM, Lloyd Brown wrote:
Okay.  I'm hoping that someone can give me some kind of helpful
suggestions here.  I'm having trouble figuring out the best way to
manage backups for some automounted user directories.

In short, I need to back up a set of NFS-shared filesystems that
represent users' home directories on my system.  If I use an automount
approach (example configs attached), then even if I can get them all
mounted, the bacula-fd will see them as separate filesystems, and I will
need to specify "_onefs_=no", to allow the backup job to traverse to other
filesystems.

I don't know if that will work, with or without _onefs_=no. It is not so much NFS as it is autofs. I suggest _onefs_=yes and specifying each and every mountpoint in the job's FileSet, rather than just the automount root directory. Autofs purposefully does not always honor stat() and such in order to prevent mass mounting.


The trouble with "_onefs_=no" is that the users could easily have symlinks
to other filesystems, that I don't want to back up.  I'm assuming that
if I specify "_onefs_=no" it will traverse symlinks to other filesystems.

One alternate approach I've been testing is to use some dynamic
definition of the filesystem list (eg a 'File = "|somescript"', or 'File
= "<somefilename"'), but so far, only the Full jobs seem to be picking
up the changes, not the incrementals.

So, any thoughts about approaches here?  Is there another way I can
allow traversal of filesystems, but only within a specific path prefix?

I admit it, I'm testing on a Debian VM, using Debian's outdated bacula
packages (5.2.6+dfsg-9.3).  If there's a known fix, I can certainly
build an updated version, though.



------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140


_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users