[Samba] samba-tool domain backup online && --configfile
samba at lindenberg.one
Mon Jul 22 05:05:10 UTC 2019
then I believe there is a bug. I did not specify the option and it used /etc/smb.conf rather than the correct /etc/samba/smb.conf. I was running a local backup on DC with Louis build 4.10.6 on ubuntu 18.04.2.
Shall I open a ticket?
Best Regards, Joachim
Von: samba <samba-bounces at lists.samba.org> Im Auftrag von Tim Beale via samba
Gesendet: Sunday, 21 July 2019 23:52
An: Joachim Lindenberg <samba at lindenberg.one>; samba at lists.samba.org
Betreff: Re: [Samba] samba-tool domain backup online && --configfile
On 20/07/19 8:42 PM, Joachim Lindenberg via samba wrote:
> https://wiki.samba.org/index.php/Back_up_and_Restoring_a_Samba_AD_DC#Online_DC_backup there is a comment “you may want to specify a --configfile option so that the correct smb.conf settings get included in the backup.“ Why does samba-tool not pick up the one it (or other parts of Samba) is compiled with automatically? Like `smbd -b | grep "CONFIGFILE" | sed -n -E 's/CONFIGFILE:(.*)/\1/p' | xargs` ?
The important point is the prefix to that sentence: "This command can be run locally on the DC or remotely. If running the command remotely, you may want to specify a |--configfile| option".
You can run the online backup on any machine with samba installed, as long as you provide the admin credentials. You do not *have* to run it on the DC itself. If you run the command remotely, the smb.conf file might not exist on that machine, or it might be the vanilla/default smb.conf, rather than the one used for your domain.
The point is the backup might still succeed in this case, but the tool won't be able to magically guess all your smb.conf settings correctly.
To unsubscribe from this list go to the following URL and read the
More information about the samba