[gpfsug-discuss] Copying ACLs between filesystems

Pete Smith pete at realisestudio.com
Fri Sep 28 11:12:50 BST 2012


Is your rsync patched for ACLs?
-- 

On 28 September 2012 11:03, Orlando Richards <orlando.richards at ed.ac.uk> wrote:
> Hi folks,
>
> Does anyone know a good way to sync files between two gpfs filesystems,
> while preserving NFSv4 ACL's?
>
> I've tried rsync and cp - neither of which seem to copy over acls.
>
> Sample test:
>
> # mkdir test
> # mmeditacl -k nfs4 test
> # mmgetacl test
> #NFSv4 ACL
> #owner:root
> #group:root
> group:1234:rwxc:allow:FileInherit:DirInherit
>  (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL
> (X)READ_ATTR  (-)READ_NAMED
>  (-)DELETE    (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL
> (X)WRITE_ATTR (-)WRITE_NAMED
>
> # rsync -av test/ test2/
> [root at mwvm06 nasdev]# mmgetacl -k nfs4 test2
> #NFSv4 ACL
> #owner:root
> #group:root
> special:owner@:---c:allow
>  (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL
> (X)READ_ATTR  (-)READ_NAMED
>  (-)DELETE    (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL
> (X)WRITE_ATTR (-)WRITE_NAMED
>
> special:group@:----:allow
>  (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL
> (X)READ_ATTR  (-)READ_NAMED
>  (-)DELETE    (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL
> (-)WRITE_ATTR (-)WRITE_NAMED
>
> special:everyone@:----:allow
>  (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL
> (X)READ_ATTR  (-)READ_NAMED
>  (-)DELETE    (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL
> (-)WRITE_ATTR (-)WRITE_NAMED
>
>
>
>
>
> --
>             --
>    Dr Orlando Richards
>   Information Services
> IT Infrastructure Division
>        Unix Section
>     Tel: 0131 650 4994
>
> The University of Edinburgh is a charitable body, registered in Scotland,
> with registration number SC005336.
> _______________________________________________
> gpfsug-discuss mailing list
> gpfsug-discuss at gpfsug.org
> http://gpfsug.org/mailman/listinfo/gpfsug-discuss



-- 
Pete Smith
DevOp/System Administrator
Realise Studio
12/13 Poland Street, London W1F 8QB
T. +44 (0)20 7165 9644

realisestudio.com



More information about the gpfsug-discuss mailing list