[Samba] Online Backup failed....

samba at laurenz.ws samba at laurenz.ws
Mon Nov 20 14:33:33 UTC 2023


Same problem:

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)

-----Ursprüngliche Nachricht-----
Von: samba at laurenz.ws <samba at laurenz.ws> 
Gesendet: Montag, 20. November 2023 15:28
An: 'samba at laurenz.ws' <samba at laurenz.ws>; 'samba at lists.samba.org'
<samba at lists.samba.org>
Betreff: AW: [Samba] Online Backup failed....

Tried your directory - same outcome.... - I try from a member server now


-----Ursprüngliche Nachricht-----
Von: samba <samba-bounces at lists.samba.org> Im Auftrag von Dirk Laurenz via
samba
Gesendet: Montag, 20. November 2023 15:06
An: samba at lists.samba.org
Betreff: Re: [Samba] Online Backup failed....

Hey,

dir exisit....

root at dc01:/autofs/backup# ls -la /autofs/backup/linux/samba_dom/backup.tgz/
insgesamt 12484
drwxr-xr-x 4 root root     4096 20. Nov 14:02 .
drwxr-xr-x 3 root root     4096 20. Nov 14:00 ..
-rw-r--r-- 1 root root 12765535 20. Nov 14:03
samba-backup-samba.laurenz.ws-2023-11-20T14-02-51.306281.tar.bz2
drwx------ 2 root root     4096 20. Nov 14:00 tmpdz6serc_
drwx------ 7 root root     4096 20. Nov 14:03 tmpwvnkjtkp

why member? 

-----Ursprüngliche Nachricht-----
Von: samba <samba-bounces at lists.samba.org> Im Auftrag von Rowland Penny via
samba
Gesendet: Montag, 20. November 2023 14:48
An: samba at lists.samba.org
Cc: Rowland Penny <rpenny at samba.org>
Betreff: Re: [Samba] Online Backup failed....

On Mon, 20 Nov 2023 14:21:53 +0100
Dirk Laurenz via samba <samba at lists.samba.org> wrote:

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

Does the /autofs/backup/linux/samba_dom/backup.tgz directory actually exist
?
To me it looks like a compressed file.

I have a script that runs every hour to backup my domain and it uses
this:

samba-tool domain backup online -N --server="$PDCe"
--targetdir=/srv/backups/$(hostname -d) --use-krb5-ccache=/tmp/backup_cc

and I end up with the directory /srv/backups/samdom.example.com full of
files like this:

samba-backup-samdom.example.com-2023-11-20T12-45-15.011687.tar.bz2

I suppose I should also say that I run the script on a Unix domain member
and not on the DC.

Rowland


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba




More information about the samba mailing list