Re: [Samba] rsync sysvol problem

2012-10-16 Thread steve

On 16/10/12 14:57, Rowland Penny wrote:

On 16/10/12 13:16, steve wrote:



Am I missing an option with rsync -auzv?



Hi Steve, how about:  -A, --acls  preserve ACLs (implies
--perms)


Hi Rowland
Thanks. Works perfectly.
Cheers,
Steve



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] rsync sysvol problem

2012-10-16 Thread Rowland Penny

On 16/10/12 13:16, steve wrote:

samba --version
Version 4.0.0rc3-GIT-293b100

Hi
I have a problem backing up my sysvol folder.

Here is the acl after running:
samba-tool ntacl sysvolreset

 getfacl /usr/local/samba/var/locks/sysvol/
getfacl: Removing leading '/' from absolute path names
# file: usr/local/samba/var/locks/sysvol/
# owner: Administrator
# group: wheel
# flags: s--
user::rwx
user:Administrator:rwx
group::rwx
group:wheel:rwx
group:300:r-x
group:301:rwx
group:302:r-x
mask::rwx
other::---

I then try to back it up, e.g.
rsync -auzv /usr/local/samba/var/locks/sysvol /usr/local

But the ACL is not preserved:

getfacl /usr/local/sysvol
# file: sysvol
# owner: Administrator
# group: wheel
# flags: s--
user::rwx
group::rwx
other::---

Am I missing an option with rsync -auzv?

Cheers,
Steve




Hi Steve, how about:  -A, --acls  preserve ACLs (implies 
--perms)


Rowland


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] rsync sysvol problem

2012-10-16 Thread steve

samba --version
Version 4.0.0rc3-GIT-293b100

Hi
I have a problem backing up my sysvol folder.

Here is the acl after running:
samba-tool ntacl sysvolreset

 getfacl /usr/local/samba/var/locks/sysvol/
getfacl: Removing leading '/' from absolute path names
# file: usr/local/samba/var/locks/sysvol/
# owner: Administrator
# group: wheel
# flags: s--
user::rwx
user:Administrator:rwx
group::rwx
group:wheel:rwx
group:300:r-x
group:301:rwx
group:302:r-x
mask::rwx
other::---

I then try to back it up, e.g.
rsync -auzv /usr/local/samba/var/locks/sysvol /usr/local

But the ACL is not preserved:

getfacl /usr/local/sysvol
# file: sysvol
# owner: Administrator
# group: wheel
# flags: s--
user::rwx
group::rwx
other::---

Am I missing an option with rsync -auzv?

Cheers,
Steve




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba