[Samba] samba4 backup and restore

Andrew Bartlett abartlet at samba.org
Wed Aug 3 03:11:39 MDT 2011

On Mon, 2011-07-25 at 01:20 +0200, arakimaru at gmail.com wrote:
> Hi,
> After testing samba4 for few days (works great !!), i'm planning to run 
> it as production server for 20 XP clients.
> I'm looking for a way to backup all data of the samba4 domain in order 
> to restore them after a crash or a bad update.
> So, if saving the smb.conf in samba3 was enough, what are the files to 
> backup in samba4 ?

It isn't enough to just save the smb.conf in Samba3, and similarly in
Samba4 you must save the databases.  

See source4/scripting/bin/samba_backup for a script to help with this.

Andrew Bartlett

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

More information about the samba mailing list