[Samba] Backup samba4 using LVM snapshot
Volker Lendecke
Volker.Lendecke at SerNet.DE
Mon Jun 17 06:00:54 MDT 2013
On Mon, Jun 17, 2013 at 08:59:28PM +1000, Andrew Bartlett wrote:
> On Fri, 2013-06-14 at 23:34 +0400, Alexey Balekhov wrote:
> > Hi all! Is it possible to lock databases in private dir to make consistent
> > LVM snapshot? I know about tdbbackup, but LVM snapshot is preferred way for
> > me, cause it's already used for MySQL backup.
>
> Just as with MySQL, you need to ensure the backup is consistent. So,
> just as you must shut down or freeze mysql, you must do the same with
> Samba. tdbbackup is how you get a frozen database out of a running
> Samba, so run that script, then run your lvm backup.
Alternatively, if someone does not want to do tdbbackup, it
should be possible to take the allrecord lock in tdb using
tdbtool. I don't know how to integrate this into taking the
lvm snapshot, but this should also guarantee a consistent
database.
Volker
More information about the samba
mailing list