"a script for backuping production provision" [Was: Samba 4.0.0 alpha 14 "randomdata"]

Adam Tauno Williams awilliam at whitemice.org
Tue Jan 4 12:33:03 MST 2011


On Tue, 2011-01-04 at 20:05 +0300, Matthieu Patou wrote:
> On 04/01/2011 19:36, Adam Tauno Williams wrote:
> > On Tue, 2011-01-04 at 19:16 +0300, Matthieu Patou wrote:
> >> On 04/01/2011 18:34, Adam Tauno Williams wrote:
> >>> On Fri, 2010-12-24 at 01:44 +0100, Jelmer Vernooij wrote:
> >> Is it working ?
> > It seems to [essentially just create backup of the {SAMBA-ROOT}/private
> > directory].  The result is a file like "samba4_private.040111.tar.bz2"
> > which I presume I can just uncompress in the {SAMBA-ROOT} in order to
> > restore.
> > Looking at the scrip the "tar cjf ${WHERE}/samba4_..." is a bit
> > disconcerting as this won't necessarily backup file permissions [ACLs].
> > A bit of getfacl/setfacl magic would be a nice touch.
> Right, but hey it's better than nothing ;-), it would be better to use 
> something else that store the ACLs.
> But in anycase storing posix ACLs won't help as we use extended 
> attributes to store NT ACLs and they are not (re)stored with (g|s)etfacl.

Correct, but we have to twiddle permissions to get named, etc...
working.

The only thing I've seen that backs up xattr data is "star" which we use
internally instead of crufty-old tar; but that may not be pervasive
enough for your purposes.
<http://cdrecord.berlios.de/private/star.html>
It is packaged for most LINUX distros but I don't know about other
platforms.



More information about the samba-technical mailing list