[Samba] Backup Member Server
rpenny at samba.org
Wed Dec 9 11:55:18 UTC 2015
On 09/12/15 11:34, Ole Traupe wrote:
> Ok, "sysvol" won't exist on member servers, of course. Besides that,
> are all relevant Samba databases located in "private"?
Well, no, on debian there are also .tdb files in /var/samba/cache/, but,
on an domain member, you probably don't have to back them up anyway. You
should backup any date stored in home directories and shares and the
smb.conf. If you then re-create the domain member, the user uids and
group gids will come from the AD DC and recreate the files in
/var/lib/samba & /var/cache/samba.
This is my understanding.
> Btw, regarding the use of the script for DCs:
> I have to cron this as root:
> 0 2 * * * root /usr/sbin/samba_backup
> And I have to put the full path to "tdbbackup" in the script (or
> otherwise make sure the correct path is recognized via /etc/crontab).
> Would be nice to have this in the Wiki.
> Am 08.12.2015 um 15:26 schrieb Ole Traupe:
>> Besides, obviously, the potential shared data on file servers, can't
>> you just use the script that is introduced for backing up DCs? At
>> least if the complete Samba installation is in "/usr/local/samba"...
>> Am 02.12.2015 um 20:06 schrieb Marc Muehlfeld:
>>> Hello James,
>>> Am 02.12.2015 um 15:57 schrieb James:
>>>> Can someone point me to documentation on how to best backup a
>>>> member server? I see the wiki currently does not contain one.
>>>> Is it as simple as backup all shared folders with rysnc or similar
>>>> will preserve ACLS along with the smb.conf? I'm currently relying on a
>>>> raid solution. Thanks.
>>> Yes, I should finally write that doc. :-)
>>> What you should backup on a Domain Member:
>>> 1.) All files (share content and whatever else is important for you)
>>> 2.) Your smb.conf
>>> 3.) Your Samba databases (you can do a hotbackup with tdbbackup)
>>> Some notes about 3.:
>>> Depending on what your Domain Member is doing, some of the tdb files
>>> important, while others are recreated and can get lost. There's nothing
>>> wrong if you backup all. :-) When I write the Wiki page, I might list
>>> which file is important for which case.
More information about the samba