On 27/04/2011 18:08, Martin Simmons wrote : >>>>>> On Wed, 27 Apr 2011 17:26:45 +0200, le dahut said: >> >> On 15/04/2011 16:12, Bruno Friedmann wrote : >>> On 04/15/2011 03:10 PM, laurent flori wrote: >>>> Le jeudi 14 avril 2011 à 20:19 +0200, Bruno Friedmann a écrit : >>>>> On 04/14/2011 02:57 PM, laurent flori wrote: >>>>>> Hello, >>>>>> >>>>>> We are using bacula for system and datas backup for all our modules here >>>>>> and we have problems for restoring acls. Even with these stanzas in the >>>>>> configuration file, no acls are restored. >>>>>> We have this in our config file: >>>>>> >>>>>> Include { >>>>>> Options { >>>>>> aclsupport = yes >>>>>> xattrsupport = yes >>>>>> @/etc/bacula/include-options.conf >>>>>> } >>>>>> >>>>>> We are using bacula version 5.0.1 in ubuntu. >>>>>> >>>>>> Are we missing something ? >>>>>> >>>>>> Thanks in advance for any clue about this problem. >>>>>> >>>>>> Cordially >>>>>> Laurent Flori >>>>>> EOLE Team >>>>>> http://eole.orion.education.fr/ >>>>>> >>>>>> >>>>> >>>>> Just be sure where you restore is mounted by a filesystem with acl enable >>>>> >>>>> a mount command should show for ext3/4 fs a acl,user_xattr option >>>>> xfs is native, and also latest btrfs build. >>>>> >>>>> >>>> Yes the filesystem where we restore have acl and user_xattr enabled but >>>> even with these options, no acl are restored. >>>> >>>> >>> So in that case did the acl exist in source ? >>> What's the output of a subset of backuped folders from >>> getfacl -R -n * >>> >>> Other stupid question, if bacula is compiled from source did you check if >>> you have enabled acl/xattr, and have corresponding >>> -devel package installed, otherwise you wouldn't get them inside bacula. >>> >>> As you see a bit more information about bacula, distribution, environnment >>> etc would help to solve your trouble. >>> >>> Here acl works from 1.3x series without any glitches ;-) >> >> >> I've made some tests and ACLs are not backuped/restored if there are >> multiple "Options" entries in an "Include" entrie. >> >> Example #1 of configuration where acls are NOT saved/restored : >> Include { >> Options { >> aclsupport = yes >> xattrsupport = yes >> @/etc/bacula/include-options.conf >> } >> Options { >> wildfile = "*/.virus:*" >> wildfile = "*/.scanned:*" >> exclude = yes >> } >> File = /home >> } > > You need to swap the two Options clauses to make it work (search for "the last > Options resource" in the documentation to see why).
Ok ! that's why ... After some tests, it seems to work. >> Example #2 of configuration where acls are CORRECTLY saved/restored : >> Include { >> Options { >> aclsupport = yes >> xattrsupport = yes >> @/etc/bacula/include-options.conf >> wildfile = "*/.virus:*" >> wildfile = "*/.scanned:*" >> exclude = yes >> } >> File = /home >> } > > I think this combination is horrible, because it looks like it adds options to > files that will be excluded :-) But it isn't the case, it really saves/restores ACLs for included files :-) (just for people who will read this post in the future) >> But the official documentation explains that example #1 should work : >> http://www.bacula.org/manuals/en/install/install/Configuring_Director.html#SECTION00680000000000000000 > > The examples are different from your case because they use multiple Include > clauses, not multiple Options clauses. There is one : """ [...] To accomplish what we want, we must explicitly exclude all other files. We do this with the following: FileSet { Name = "Full Set" Include { Options { wildfile = "*.Z" wildfile = "*.gz" } Options { Exclude = yes RegexFile = ".*" } File = /myfile } } [...] """ > > __Martin Thank you for those clarifications. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users