Re: [Bacula-users] preserving ACL permissions

2019-07-29 Thread Josip Deanovic
On Monday 2019-07-29 15:26:51 Adam Weremczuk wrote: > Hi all, > > Switching options around did the trick and my ACLs meta data is now > backed up. > > Unfortunately it only applies to files and folders that have been > modified so my backups are not complete yet. > > I'm hoping the next full

Re: [Bacula-users] preserving ACL permissions

2019-07-29 Thread Adam Weremczuk
Hi all, Switching options around did the trick and my ACLs meta data is now backed up. Unfortunately it only applies to files and folders that have been modified so my backups are not complete yet. I'm hoping the next full run (scheduled for Wednesday) will have them all. Martin was also

Re: [Bacula-users] preserving ACL permissions

2019-07-26 Thread Josip Deanovic
On Thursday 2019-07-25 09:58:18 Chandler wrote: > Adam Weremczuk wrote on 7/25/19 04:42: > > Does it mean it will apply missing attributes in an incremental > > manner? > > You could always minimize your FileSet resource to backup just 1 or a > few files with ACL's, just for testing. Then once

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Chandler
Adam Weremczuk wrote on 7/25/19 04:42: Does it mean it will apply missing attributes in an incremental manner? You could always minimize your FileSet resource to backup just 1 or a few files with ACL's, just for testing. Then once those restore fine you can go back to your full set.

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 16:06, Kern Sibbald wrote: Hello, I saw that someone mentioned using Samba.  Bacula does not save and restore acl across NFS or Samba.  To do so you must have a filesystem that is mounted locally  on the File Daemon. Best regards, Kern Hi Kern, Issue with missing ACLs only

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Kern Sibbald
Hello, I saw that someone mentioned using Samba.  Bacula does not save and restore acl across NFS or Samba.  To do so you must have a filesystem that is mounted locally  on the File Daemon. Best regards, Kern On 7/25/19 12:08 PM, Adam Weremczuk wrote: On 25/07/19 10:55, Martin Simmons

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Martin Simmons
> On Thu, 25 Jul 2019 16:32:07 +0200, Josip Deanovic said: > > On Thursday 2019-07-25 13:12:49 Martin Simmons wrote: > > Only the basic unix permissions are stored in the database, not the acl > > and xattr info. > > I have just checked the database on bacula 7.0.5 and I don't think >

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread David While
I think you need to provide the director config file not the client config file i.e. bacula-dir -t /etc/bacula/bacula-dir.conf On 25/07/2019 15:28, Adam Weremczuk wrote: On 25/07/19 12:16, Josip Deanovic wrote: When you perform some change you can always test the configuration with the

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 15:40, Josip Deanovic wrote: If I understand correctly you have run bacula-dir -t with the the client config excerpt. You should run bacula-dir -t with the main bacula configuration file. Yes, bacula-dir -t /etc/bacula/bacula-dir.conf doesn't complain about anything so I should be

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Josip Deanovic
On Thursday 2019-07-25 15:28:09 Adam Weremczuk wrote: > On 25/07/19 12:16, Josip Deanovic wrote: > > When you perform some change you can always test the configuration > > with the bacula-dir -t command. > > I get the following for every single client conf: > > bacula-dir -t

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Josip Deanovic
On Thursday 2019-07-25 13:12:49 Martin Simmons wrote: > Only the basic unix permissions are stored in the database, not the acl > and xattr info. I have just checked the database on bacula 7.0.5 and I don't think permissions are stored in the database either. Also, if you try to do the bextract

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 12:16, Josip Deanovic wrote: When you perform some change you can always test the configuration with the bacula-dir -t command. I get the following for every single client conf: bacula-dir -t /etc/bacula/clients/server.conf 25-Jul 15:19 bacula-dir: ERROR TERMINATION at

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Martin Simmons
> On Thu, 25 Jul 2019 13:36:20 +0200, Josip Deanovic said: > > Josip DeanovicOn Thursday 2019-07-25 13:18:31 wrote: > > On Thursday 2019-07-25 12:11:58 Martin Simmons wrote: > > > I don't think this change will cause a full backup -- only changes to > > > File= and Plugin= lines will do

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Martin Simmons
> On Thu, 25 Jul 2019 14:03:09 +0200, Josip Deanovic said: > > On Thursday 2019-07-25 12:42:13 Adam Weremczuk wrote: > > On 25/07/19 12:36, Josip Deanovic wrote: > > > Just checked the documentation. > > > @Martin, I think you are right. > > > > > > > > >

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Josip Deanovic
On Thursday 2019-07-25 12:42:13 Adam Weremczuk wrote: > On 25/07/19 12:36, Josip Deanovic wrote: > > Just checked the documentation. > > @Martin, I think you are right. > > > > > > https://www.bacula.org/5.2.x-manuals/en/main/main/Configuring_Director > > .html#SECTION00147 > >

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 12:39, Josip Deanovic wrote: About the deletion of old jobs... What kind of storage type are using? Are you using real tapes or files on disk? See my "[Bacula-users] deleting data written to volume" post from about an hour ago. ___

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 12:36, Josip Deanovic wrote: Just checked the documentation. @Martin, I think you are right. https://www.bacula.org/5.2.x-manuals/en/main/main/Configuring_Director.html#SECTION00147 "Any change to the list of the included files will cause Bacula to automatically

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Josip Deanovic
On Thursday 2019-07-25 12:31:42 Adam Weremczuk wrote: > On 25/07/19 12:18, Josip Deanovic wrote: > > On Thursday 2019-07-25 12:11:58 Martin Simmons wrote: > >> I don't think this change will cause a full backup -- only changes to > >> File= and Plugin= lines will do that. > > > > Curious to hear

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Josip Deanovic
Josip DeanovicOn Thursday 2019-07-25 13:18:31 wrote: > On Thursday 2019-07-25 12:11:58 Martin Simmons wrote: > > I don't think this change will cause a full backup -- only changes to > > File= and Plugin= lines will do that. > > Curious to hear if this is correct. :-) Just checked the

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 12:18, Josip Deanovic wrote: On Thursday 2019-07-25 12:11:58 Martin Simmons wrote: I don't think this change will cause a full backup -- only changes to File= and Plugin= lines will do that. Curious to hear if this is correct. :-) Thanks Josip. I'm leaning towards agreeing with

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Josip Deanovic
On Thursday 2019-07-25 12:11:58 Martin Simmons wrote: > I don't think this change will cause a full backup -- only changes to > File= and Plugin= lines will do that. Curious to hear if this is correct. :-) -- Josip Deanovic ___ Bacula-users mailing

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Josip Deanovic
On Thursday 2019-07-25 11:08:53 Adam Weremczuk wrote: > On 25/07/19 10:55, Martin Simmons wrote: > > Yes, the FileSet may be the problem -- try reordering the Options > > clauses so that the "default" Options clause containing xattrsupport > > etc is the last one. > > > > The manual says:

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Martin Simmons
> On Thu, 25 Jul 2019 11:08:53 +0100, Adam Weremczuk said: > > On 25/07/19 10:55, Martin Simmons wrote: > > > Yes, the FileSet may be the problem -- try reordering the Options clauses so > > that the "default" Options clause containing xattrsupport etc is the last > > one. > > > > The

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 11:44, Josip Deanovic wrote: Additionally, the first one seems to be linked with Eset antivirus library. Well spotted :) ESET Node32 was installed much later and it's just a silly experiment. I wouldn't thought it could affect operations of Bacula client. The suspicion is my

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Josip Deanovic
On Thursday 2019-07-25 10:15:46 Adam Weremczuk wrote: > On 25/07/19 03:52, Josip Deanovic wrote: > > Can you also check ldd bacula-fd on both clients (working and not > > working)? > > > > I cannot check now if samba is using libacl or its own implementation. > > client with working ACL

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 10:55, Martin Simmons wrote: Yes, the FileSet may be the problem -- try reordering the Options clauses so that the "default" Options clause containing xattrsupport etc is the last one. The manual says: "However, one additional point is that in the case that no match was found,

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Martin Simmons
> On Thu, 25 Jul 2019 10:19:21 +0100, Adam Weremczuk said: > > On 24/07/19 16:49, Martin Simmons wrote: > > > What happens if you take a backup from the broken client and restore it on > > the > > working client? And vice versa? > Restore from the broken client to a working one misses

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 24/07/19 16:49, Martin Simmons wrote: What happens if you take a backup from the broken client and restore it on the working client? And vice versa? Restore from the broken client to a working one misses ACLs. Restore from working client to broken shows them correctly. Could it be

Re: [Bacula-users] preserving ACL permissions

2019-07-25 Thread Adam Weremczuk
On 25/07/19 03:52, Josip Deanovic wrote: Can you also check ldd bacula-fd on both clients (working and not working)? I cannot check now if samba is using libacl or its own implementation. client with working ACL backup/restore: ldd /usr/sbin/bacula-fd     linux-vdso.so.1 => 

Re: [Bacula-users] preserving ACL permissions

2019-07-24 Thread Josip Deanovic
On Wednesday 2019-07-24 16:39:02 Adam Weremczuk wrote: > On 24/07/19 16:33, Adam Weremczuk wrote: > > On 24/07/19 16:24, Martin Simmons wrote: > >> Have you checked if acl and xattr support is compiled into the > >> bacula-fd? > >> > >> objdump -T ...path..to../bacula-fd | egrep 'acl|xattr' > >>

Re: [Bacula-users] preserving ACL permissions

2019-07-24 Thread Martin Simmons
> On Wed, 24 Jul 2019 16:39:02 +0100, Adam Weremczuk said: > > On 24/07/19 16:33, Adam Weremczuk wrote: > > > On 24/07/19 16:24, Martin Simmons wrote: > > > >> Have you checked if acl and xattr support is compiled into the > >> bacula-fd? > >> > >> objdump -T ...path..to../bacula-fd | egrep

Re: [Bacula-users] preserving ACL permissions

2019-07-24 Thread Adam Weremczuk
On 24/07/19 16:33, Adam Weremczuk wrote: On 24/07/19 16:24, Martin Simmons wrote: Have you checked if acl and xattr support is compiled into the bacula-fd? objdump -T ...path..to../bacula-fd | egrep 'acl|xattr' __Martin objdump -T /usr/sbin/bacula-fd | egrep 'acl|xattr'  

Re: [Bacula-users] preserving ACL permissions

2019-07-24 Thread Adam Weremczuk
On 24/07/19 16:24, Martin Simmons wrote: Have you checked if acl and xattr support is compiled into the bacula-fd? objdump -T ...path..to../bacula-fd | egrep 'acl|xattr' __Martin objdump -T /usr/sbin/bacula-fd | egrep 'acl|xattr'   DF *UND*      ACL_1.0

Re: [Bacula-users] preserving ACL permissions

2019-07-24 Thread Martin Simmons
> On Wed, 24 Jul 2019 15:54:49 +0100, Adam Weremczuk said: > > On 23/07/19 19:16, Josip Deanovic wrote: > > > Have you checked both file systems for the ACL support? > > ACL support might be disabled. > The client in question (fd) also happens to be Bacula director and sd. > An yes, it does

Re: [Bacula-users] preserving ACL permissions

2019-07-24 Thread Adam Weremczuk
On 23/07/19 19:16, Josip Deanovic wrote: Have you checked both file systems for the ACL support? ACL support might be disabled. The client in question (fd) also happens to be Bacula director and sd. An yes, it does support ACL: cat /etc/mtab | grep acl | grep var /dev/mapper/vg0-var /var ext4

Re: [Bacula-users] preserving ACL permissions

2019-07-23 Thread Josip Deanovic
On Tuesday 2019-07-23 16:33:38 Adam Weremczuk wrote: > Strangely both options were already in client's config file, just failed > to be executed for some reason: > > FileSet { >Name = server_fileset >Include { > Options { >signature = SHA1 >##sparse = yes >

Re: [Bacula-users] preserving ACL permissions

2019-07-23 Thread Adam Weremczuk
Strangely both options were already in client's config file, just failed to be executed for some reason: FileSet {   Name = server_fileset   Include {     Options {   signature = SHA1   ##sparse = yes   xattrsupport = yes   aclsupport = yes   noatime = yes  

Re: [Bacula-users] preserving ACL permissions

2019-07-22 Thread Chandler
Hi all, With Bacula 5.2.6 (I know it's old) is it possible to preserve, e.g: Check the FileSet reference, option aclsupport=yes and/or xattrsupport=yes, https://www.bacula.org/5.2.x-manuals/en/main/main/Configuring_Director.html#SECTION00147 -- Chandler / Systems Administrator

[Bacula-users] preserving ACL permissions

2019-07-22 Thread Adam Weremczuk
Hi all, With Bacula 5.2.6 (I know it's old) is it possible to preserve, e.g: ORIGINAL: # file: samba/sysvol # owner: root # group: 300 user::rwx user:root:rwx group::rwx group:300:rwx group:301:r-x group:302:rwx group:303:r-x mask::rwx other::--- default:user::rwx