Maybe rsync isn't ready to do it yet, but you could cheat.
Have the server side prepare a list of ACLs, from which they can be reconstructed on 
the reciever.
I'm sure there's a more efficient way to do it, maybe with the  Solaris-ACL perl 
package, or coding it in C, but here's a quick and dirty way to do it with shell 
scripting.

createacllist:
++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh

find $* -print |while read object
do

acl=`getfacl $object | sed 's/#.*//`
acl=`echo $acl |tr -d '
'`
acl=`echo $acl |tr ' ' ,`
echo "$object  $acl"

done
++++++++++++++++++++++++++++++++++++++++++++++++
applyacllist:
++++++++++++++++++++++++++++++++++++++++++++++++

#!/bin/sh

cat $1 |while read file acl
     do

          setfacl -s $acl $file

     done
++++++++++++++++++++++++++++++++++++++++++++++++
(See attached file: aclrep.tar)
Have the server run createacllist from time to time.
Have the client grab the acl list, and run applyacllist on it after the sync.
Maybe you could save processor time by keeping the old acl list's checksum, and if it 
hasn't changed, don't run it.

Tim Conway
[EMAIL PROTECTED]
303.682.4917
Philips Semiconductor - Colorado TC
1880 Industrial Circle
Suite D
Longmont, CO 80501
"There are some who call me.... Tim?"





Martin Pool <[EMAIL PROTECTED]>@lists.samba.org on 07/12/2001 05:52:13 PM

Sent by:  [EMAIL PROTECTED]


To:     "Obergehrer, Walter" <[EMAIL PROTECTED]>
cc:     "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> (bcc: Tim 
Conway/LMT/SC/PHILIPS)
Subject:  Re: any news about rsync and acl's?
Classification:



On 12 Jul 2001, "Obergehrer, Walter" <[EMAIL PROTECTED]> wrote:

> Does anybody know if rsync can be used in a way to preserve the ACL's?
> If not, are there plans to implement it in the near future?
> If not, are there other tools which can handle ACL's when
> synchronizing?

I don't know if there are any plans to support them at the moment.
They are most definitely on the list for rsync 3.0, but there is no
target date for that yet.  We would like them to map correctly between
heterogenous systems, which is not trivial.

  http://rsync.samba.org/cgi-bin/rsync.fom?file=48

--
Martin
VA Linux Systems



aclrep.tar

Reply via email to