This is not the case for standalone installations.
Bug: https://bugs.launchpad.net/samba/+bug/930370
Bug: https://bugzilla.samba.org/show_bug.cgi?id=8781
:param paths: Paths to different objects
:param dir: Directory where to store the backup
"""
- copytree_with_xattrs(paths.sysvol, os.path.join(dir, "sysvol"))
+ if paths.sysvol is not None:
+ copytree_with_xattrs(paths.sysvol, os.path.join(dir, "sysvol"))
shutil.copy2(paths.samdb, dir)
shutil.copy2(paths.secrets, dir)
shutil.copy2(paths.idmapdb, dir)