The following command should make a backup of the domain int.bla.com and rename it to test.example.com but it fails with current samba versions as shown below: samba-tool domain backup rename test test.example.com --server=dc1.int.bla.com --targetdir=/root/backup-backup -U "administrator@int.bla.com" ... INFO 2023-12-07 11:15:28,806 pid:41387 /usr/lib/python3/dist-packages/samba/join.py #1687: Setting isSynchronized and dsServiceName ERROR(<class 'TypeError'>): uncaught exception - argument 1 must be str, not None File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 279, in _run return self.run(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/samba/netcmd/domain/backup.py", line 903, in run smb_conn = smb_sysvol_conn(server, lp, creds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/samba/netcmd/domain/backup.py", line 116, in smb_sysvol_conn s3_lp.load(lp.configfile)
(In reply to Björn Jacke from comment #0) This works for myself on 4.20.4 if I make one small change, I used: samba-tool domain backup rename test test.example.com --server=tmpdc1.samdom.example.com --targetdir=/root/backup-backup -U Administrator
(In reply to Rowland Penny from comment #1) After thinking about this for a while, I used '-U Administrator@SAMDOM.EXAMPLE.COM', it worked, so I went for broke and tried it with '-U Administrator@samdom.example.com', it still worked. so Bjorn, you might want to try with a later version, if yours was before 4.20.x