[Samba] Backup and Restore AD Samba4

Marc Muehlfeld mmuehlfeld at samba.org
Wed Aug 20 11:25:16 MDT 2014

Am 20.08.2014 15:01, schrieb mourik jan heupink - merit:
> 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.

You can try something like

# find /usr/local/samba/ -type f \( -name \*.tdb -o -name \*.ldb \)
-exec tdbbackup -s .bak '{}' ';' || mail -s "tdbbackup failed"
user at example.com

(not tested)


More information about the samba mailing list