[Samba] Backup Member Server

James lingpanda101 at gmail.com
Thu Dec 10 12:59:14 UTC 2015


On 12/10/2015 7:01 AM, Ole Traupe wrote:
> Wanted to add that I am using STAR for incremental backups of ZFS 
> snapshots on a member server while preserving ACLs with the -xattr 
> parameter. It is pretty fast (uncompressed, of course).
>
> http://linuxcommand.org/man_pages/star1.html
>
> Ole
>
>
>
> Am 09.12.2015 um 13:27 schrieb L.P.H. van Belle:
>> Hai,
>>
>> but dont forget that if you use samba also as print server
>> you need to backup the /var/lib/samba/drivers en printing also.
>> ( and in my case a different folder. )
>>
>> In /var/cache/samba is the file printer_list.tdb
>> I dont think that recreated, and if it is, you probely will loose the 
>> printer settings. I'll have to look that up.
>>
>> Maybe its an option to let the backup scrip detect if it running on a
>> DC or Member server so it always backups what is needed.
>>
>>
>> Greetz,
>>
>> Louis
>>
>>
>>
>>
>>> -----Oorspronkelijk bericht-----
>>> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Rowland penny
>>> Verzonden: woensdag 9 december 2015 12:55
>>> Aan: samba at lists.samba.org
>>> Onderwerp: Re: [Samba] Backup Member Server
>>>
>>> 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.
>>>
>>> Rowland
>>>
>>>> -- 
>>>>
>>>> Btw, regarding the use of the script for DCs:
>>>> https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC
>>>>
>>>> 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.
>>>>
>>>> Ole
>>>>
>>>>
>>>>
>>>> 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"...
>>>>>
>>>>> https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC
>>>>>
>>>>>
>>>>>
>>>>> 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
>>>>>>> samba
>>>>>>> member server? I see the wiki currently does not contain one.
>>>>>>>
>>>>>>> Is it as simple as backup all shared folders with rysnc or similar
>>>>>>> that
>>>>>>> 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
>>>>>> are
>>>>>> 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.
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Marc
>>>>>>
>>>>>
>>>>
>>>
>>> -- 
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>>
>
>
Thanks for all the responses. I'm taking note of all feedback and 
assessing my current setup.

-- 
-James




More information about the samba mailing list