[gpfsug-discuss] Copying ACLs between filesystems

Orlando Richards orlando.richards at ed.ac.uk
Fri Sep 28 12:05:29 BST 2012



On 28/09/12 11:12, Pete Smith wrote:
> Is your rsync patched for ACLs?

Not by me - though I did find this patch from IBM back in 2008, but I 
can't get it to build against any version 3.0.x of rsync (I didn't go 
further back), and there was no follow up on the list that I can see 
(apart from one immediate response attempting to initiate dialogue).

   http://lists.samba.org/archive/rsync/2008-October/021963.html

I'm currently entertaining doing:

dsmc incr -> dsmc restore!



> -- 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
> _______________________________________________ gpfsug-discuss mailing
> list gpfsug-discuss at gpfsug.org
> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
>


-- 
             --
    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.



More information about the gpfsug-discuss mailing list