[Samba] rsync alternative -- smbclient?

Joachim Lindenberg
2019-07-14T06:42:28Z

Hello Jonathon,
thanks for sharing that history..

> So at this point, it seems hopeless. Perhaps Andrew or Andreas,
> knowing much more than I about SMB ACLs and xattrs, could offer some
> advice? Is it really impossible to sync Sysvol using SMB? Maybe I
> could connect to both a remote **and** local SMB share, and apply them
> in that way?

Imho that complexity is not needed. Smbclient provides option getfacl, thus it
knows how to obtain ACLs. Samba-tool has option ntacl, thus knows how to manage
attributes to reflect ACLs. My take: all required ingredients to get this
implemented are already coded in Samba, just need to be pulled together and have
smbclient copy the ACL properly, probably subject to a command line option. Imho
the only reason not to do it were if work on
https://bugzilla.samba.org/show_bug.cgi?id=6714 is expected to provide a better
solution soon.

Thanks,  Joachim