[Samba] How to make an unattended backup

Rowland penny rpenny at samba.org
Wed Sep 11 18:40:21 UTC 2019


On 11/09/2019 19:14, Sergio Belkin via samba wrote:
> Hi,
>
> I use AptVanBelle repo for samba, is there a way to backup in unattended
> way (I mean via cron) the DC?
>
> If I use
> samba-tool domain backup online --targetdir=/srv/backup --server=
> samba4.example.com  -k yes -d1
>
> It works, by it ask for password Administrator.
>
> What is the best practice to do it?
>
> Thanks in advance!

We had this recently and for some reason, you get prompted for the 
Administrator password when it tries to backup sysvol, thing is, it just 
prompts for the password, it doesn't need it. If you just press 'Enter' 
it completes the backup successfully. So just add 'echo | ' to the start 
of the samba-tool command.

Rowland





More information about the samba mailing list