[Samba] Recommended backup procedure for standalone samba file server configuration?

Andrew Bartlett abartlet at samba.org
Thu Feb 20 17:45:15 UTC 2020


On Thu, 2020-02-20 at 16:27 +0000, Stephen via samba wrote:
> 
> Unfortunately I couldn't find any official Samba documentation 
> describing a recommended way to do this for the specific case of a 
> STANDALONE samba file server. I am aware that samba provides official 
> tools for backing up the user configuration of a DC, but how can I 
> achieve similar results for a standalone file server?
> 
> In the absense of any official guidance I managed to achieve a 
> successful backup myself by just tarring up the /etc/samba and 
> /var/lib/samba folders on my server and then later restoring these 
> archives to their original locations.
> 
> Obviously my way is crude and unofficial! Is there an officially 
> supported and/or recommended method and tools to achieve my aims here? 
> Or should I just carry on using my tar files manually as I have described?

When taking copies of tdb files, use tdbbackup to do so safely (eg
locked). 

Andrew Bartlett
-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba





More information about the samba mailing list