Create backup of TDB files on start/stop
Migrated from: https://tracker.clearos.com/view.php?id=174
Reported by: Peter Baldwin
The TDB files should be backed up in case of file system corruption.
- on shutdown: pdbedit -y -i tdbsam -e ldapsam (only on the PDC)
- on startup: pdbedit -y -e tdbsam -i ldapsam (every machine except PDC)
- on startup: tdbbackup -s bak *tdb (read man pages)
.
Developer comment:
Since the issue was originally raised there has been some movement in how backups should be done. For Samba AD DC v4.0-v4.8 see here and for v4.9+ see here.
Edited by Nick