BUG: https://bugzilla.samba.org/show_bug.cgi?id=12893
Reported-by: Jeff Sadowski <jeff.sadowski@gmail.com>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
return
raise e
raise copy_err
+
+ except FileNotFoundError as e:
+ # tdbbackup tool was not found.
+ raise CommandError(e.strerror, e)
+
if not os.path.exists(backup_path):
s = "tdbbackup said backup succeeded but {0} not found"
raise CommandError(s.format(backup_path))
+
def offline_mdb_copy(self, path):
mdb_copy(path, path + self.backup_ext)
toolpath = os.path.join(d, "tdbbackup")
if os.path.exists(toolpath):
break
+ else:
+ # we did not find a path to tdbbackup
+ raise FileNotFoundError(2, "could not find tdbbackup tool: "
+ "is tdb-tools installed?")
tdbbackup_cmd = [toolpath, "-s", ".copy.tdb", file1]
if readonly: