[Samba] Backup and Restore AD Samba4
mourik jan heupink - merit
heupink at merit.unu.edu
Wed Aug 20 07:01:21 MDT 2014
What I added is a check to verify that each day the same number of .bak
files exist.
Reason: we once experienced corruption on a DC database, which caused
the tdbbackup to fail, and I noticed only weeks later.
My script counts yesterdays .bak files, removes those, creates fresh
ones, and then counts those. If there are less today, I receive a
notification.
MJ
On 8/19/2014 17:48, Roberto Suárez Soto wrote:
> El 19/08/14 a las #4, Fermin Francisco escribió:
>> How Can I make a Backup and Restore my samba4 active directory (users,
>> groups, etc)??
>
> Use tdbbackup with all the ldb and tdb files in /var/lib/samba.
> Something like this:
>
> find /var/lib/samba -name "*.[lt]db" | xargs -r tdbbackup
>
> This should leave a lot of ".bak" files in /var/lib/samba that you
> can afterwards archive.
>
> Regards,
>
>
>
More information about the samba
mailing list