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

Michael Wood esiotrot at gmail.com
Tue Jan 4 17:31:33 MST 2011


Hi Matthieu

On 4 January 2011 20:40, Matthieu Patou <mat at samba.org> wrote:
> On 04/01/2011 20:11, Jelmer Vernooij wrote:
[...]
>> It also seems rather arbitrary to update the sysvol share contents but
>> not the contents of any of the other shares.
>
[...]
> That being said, there is nothing that forbids to extend the backup of all
> shares but I do think that having the possiblity not to backup all shares
> but just sysvol is needed.

I agree that the samba_backup script should not back up all the data
on all of the shares, but just stuff that's necessary for Samba to
function properly.

By the way, there are some typos in the script.  A variable called
relativedirname is set at the top of the loop, and then further down,
refativedirname and relativedirname are both used a few times.

This probably works because you cd to $FROMWHERE before the loop and
the "find $refativedirname -name ..." expands to "find -name ..."
which is treated the same as "find . -name ..." by GNU find (but not
BSD find and the versions from proprietary UNIXes as far as I
remember.)

I haven't tested to see what happens if I rename all instances of
refativedirname to relativedirname.

-- 
Michael Wood <esiotrot at gmail.com>


More information about the samba-technical mailing list