[Samba] Backup samba4 using LVM snapshot

Andrew Bartlett abartlet at samba.org
Mon Jun 17 04:59:28 MDT 2013


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.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba mailing list