[Samba] samba-tool domain backup online && --configfile
timbeale at catalyst.net.nz
Sun Jul 21 21:51:37 UTC 2019
On 20/07/19 8:42 PM, Joachim Lindenberg via samba wrote:
> On 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.
More information about the samba