How to backup samba4

Andrew Bartlett abartlet at samba.org
Thu Aug 23 14:50:21 MDT 2012


On Thu, 2012-08-23 at 19:30 +0200, Marc Muehlfeld wrote:
> Hi,
> 
> I'm currently planing and testing the final steps for our switch to s4 in 3 
> weeks and now got the following two important questions:
> 
> - How do I backup samba4 (databases, etc.) while it's running?

Use tdbbackup on each ldb file. 

> - What do I have to backup from samba (byside the data on the shares) to 
> restore the whole AD if neccessary? (/usr/local/samba/private|etc|var + sysvol 
> + netlogon folder?

That sounds right. 

There is actually already a script for this:

source4/scripting/bin/samba_backup

Andrew Bartlett
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba-technical mailing list