Hi!
If it's possible with the NFS server and the exported directory structure,
you could also statically mount the entire directory containing
all home directories and backup that.
I.e. if the automounter mounts /userhomedirs/userX from the server under
/home/userX, you could also do a secondary mount of /userhomedirs to your
backup machine (let's say under /mnt/alluserhomedirs) and back up that
one. That way you don't have to worry about which users exist.
We use a similar setup because for new users we have to create the
homedir on the NFS server before the user account itself exists (the
automounter cannot create the NFS export client-side.)
Gtnx
Marcel
--
Marcel de Boer
Test engineer, Service Routing R&D, IP/Optical Networks
Nokia, Antwerp, Belgium
On Thu, 31 Mar 2016, EXT Lloyd Brown wrote:
>
>
> On 03/31/2016 06:40 AM, Josh Fisher wrote:
>>
>> 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.
>
> I would love to do that. But the problem is that the list of mounts
> changes. We're talking about 1 mount per user, and we have 300-500
> users at any given time, with 5-10 new users per week, and about as many
> expiring per week. So I certainly cannot statically specify the
> mountpoints in the bacula-dir.conf, without changing it constantly.
>
> I could use the pre-run script to mount them, based on an external user
> list, and then unmount them in a post-run script. This is an option I'm
> considering right now, but I'm not certain yet.
>
> If there's community interest, once I figure it out completely, I can
> probably post example configs and scripts.
>
>
------------------------------------------------------------------------------
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
|