netcmd: domain backup offline command
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Tue, 26 Jun 2018 01:47:42 +0000 (13:47 +1200)
committerGary Lockyer <gary@samba.org>
Mon, 6 Aug 2018 03:37:42 +0000 (05:37 +0200)
commitf17d20123a4dc6b3b798456775c9449a2afd4921
treecdcf1ca3c2fe93c8916826da0ed5a22dafb6b2f0
parent4f532cc177cd1e95d8ccf8e69f50b315354df34c
netcmd: domain backup offline command

Unlike the existing 'domain backup online' command, this command allows an
admin to back up a local samba installation using the filesystem and the
tdbbackup tool instead of using remote protocols.  It replaces samba_backup
as that tool does not handle sam.ldb and secrets.ldb correctly.  Those two
databases need to have transactions started on them before their downstream
ldb and tdb files are backed up.

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
docs-xml/manpages/samba-tool.8.xml
python/samba/mdb_util.py
python/samba/netcmd/domain_backup.py
python/samba/tdb_util.py
source4/scripting/bin/samba_backup [deleted file]