[Samba] samba_backup script

Rowland Penny rowlandpenny at googlemail.com
Mon Aug 18 13:51:05 MDT 2014


On 18/08/14 20:32, Marc Muehlfeld wrote:
> Am 18.08.2014 21:08, schrieb Rowland Penny:
>> What is missing from the supplied script is a test to see if the samba
>> daemon is running, which I think shouldn't be whilst you backup the
>> directories.
> This isn't necessary. The script used tdbbackup to hot-backup the ldb
> files during runtime. This generates *.ldb.bak files. And a later find
> command excludes the *.ldb files (which may be inconsistent because not
> exported via tdbbackup first) when doing tar.

In which case, this (on the Backup & recovery page) needs to be altered.


    How LDB and TDB files can be backuped/restored

If plan to modify the 'samba_backup' script or create an own solution, 
you'll find here some usefull information:

  * You must never copy a running database!

Also whilst we are mentioning it, there is no such English word as 
'backuped', it should be 'backed-up' ;-)

Rowland


>
> So you only have to rename the *.ldb.bak files when you restore:
> https://wiki.samba.org/index.php/Backup_and_Recovery#Restore
>
>
>
> Regards,
> Marc



More information about the samba mailing list