[Samba] Automated samba online backup.

Rowland penny rpenny at samba.org
Fri Mar 19 20:05:54 UTC 2021

On 19/03/2021 19:57, Andrew Bartlett wrote:
> On Fri, 2021-03-19 at 18:48 +0000, Rowland penny via samba wrote:
>> On 19/03/2021 18:27, Andrew Bartlett via samba wrote:
>>> I would strongly recommend against this 'solution'.  Unless you
>>> lock
>>> the Samba DB during the backup, you cannot know that the DB is in a
>>> consistent state to take the backup.
>>> The same concerns expressed for PostgreSQL apply to Samba:
>>> https://www.postgresql.org/docs/9.1/backup-file.html
>>> Andrew Bartlett
>> I am not entirely sure what the difference is between 'samba-tool
>> domain
>> backup online' and 'samba-tool domain backup offline', apart from
>> the
>> first works and the second doesn't (until the fix going through
>> gitlab
>> now is added) 😁
>> the online version does work, you just have to use kerberos and add
>> '-N'
> The online backup makes RPC calls just like joining a new domain
> controller over the network, the offline backup takes locks on the
> database files and copies them at the tdb or mdb level.
> If there are any more combinations that don't 'just work' please file
> bugs with clear directions to reproduce or point me at them, Joseph is
> making very good progress on some of the issues here so it would be
> good to knock them all off at once.
> Andrew Bartlett

Thanks for explaining that.

there is a bug report for the 'online' backup; 

But it isn't a bug in my opinion (for what that's worth), it is a 
misconfiguration, as it works if you use kerberos with '-N'


More information about the samba mailing list