[Samba] Online Backup failed....

samba at laurenz.ws samba at laurenz.ws
Mon Nov 20 13:21:53 UTC 2023


Hello everybody,

 

i tried "samba-tool domain backup online --server=dc01
--targetdir=/autofs/backup/linux/samba_dom/backup.tgz -U administrator"

 

and got this error:

 

 

ERROR(<class 'OSError'>): uncaught exception - [Errno 39] Directory not
empty: 'sam.ldb.d'

  File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185,
in _run

    return self.run(*args, **kwargs)

  File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line
303, in run

    shutil.rmtree(tmpdir)

  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree

    _rmtree_safe_fd(fd, path, onerror)

  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd

    _rmtree_safe_fd(dirfd, fullname, onerror)

  File "/usr/lib/python3.9/shutil.py", line 659, in _rmtree_safe_fd

    onerror(os.rmdir, fullname, sys.exc_info())

  File "/usr/lib/python3.9/shutil.py", line 657, in _rmtree_safe_fd

    os.rmdir(entry.name, dir_fd=topfd)

 

root at dc01:/autofs/backup# ls -la /var/lib/samba/private/sam.ldb.d/

insgesamt 29680

drwx------ 2 root root    4096  8. Aug 15:30  .

drwxr-xr-x 6 root root    4096 20. Nov 03:19  ..

-rw------- 1 root root 8470528 20. Nov 14:20
'CN=CONFIGURATION,DC=SAMBA,DC=LAURENZ,DC=WS.ldb'

-rw------- 1 root root 8470528 20. Nov 14:20
'CN=SCHEMA,CN=CONFIGURATION,DC=SAMBA,DC=LAURENZ,DC=WS.ldb'

-rw-rw---- 2 root bind 4333568 20. Nov 14:20
'DC=DOMAINDNSZONES,DC=SAMBA,DC=LAURENZ,DC=WS.ldb'

-rw-rw---- 2 root bind 4333568 20. Nov 14:20
'DC=FORESTDNSZONES,DC=SAMBA,DC=LAURENZ,DC=WS.ldb'

-rw------- 1 root root 4333568 20. Nov 14:20 'DC=SAMBA,DC=LAURENZ,DC=WS.ldb'

-rw-rw---- 2 root bind  421888 20. Nov 14:13  metadata.tdb



More information about the samba mailing list