The samba_backup bash script is a tool that creates a local backup of a
DC using the file system. This patch replaces that script with a new
samba-tool command called "domain backup offline".
If the samba_backup bash script is used on a DC while it is running,
there could be database corruption. This patch adds readonly locking
mode to the tdbbackup tool and uses the new functionality to do a safe
backup. Thorough testing is added, including a new testenv target
constructed from a backup created by the new tool. The new target is
tagged against all the same tests as the existing 'backup online' and
'rename' targets.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: offline_backup.patch
Type: text/x-patch
Size: 49713 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180725/7e3cec61/offline_backup.bin>