Backing up samba4
Marc Muehlfeld
Marc.Muehlfeld at medizinische-genetik.de
Wed Sep 19 12:04:06 MDT 2012
Am 19.09.2012 19:03, schrieb Andrew Bartlett:
> tdbbackup creates a second, live and ready-to-use tdb that can then be
> copied because nothing else is using it. The other command pair you are
> trying to refer to to tdbdump and tdbrestore, which creates a larger
> text file representations of the data, and creates a fresh tdb from that
> text file. These are really more development tools, but could be useful
> in some very, very low level debugging situations. This is not needed
> for typical backup/restore.
If I can just rename the *.ldb.bak to *.ldb then it's easy in a case of
restore. And I can get a backup of the databases without shuting down samba.
But then I have a question for curiosity: Are the files compacted or something
by tdbbackup? Because I saw, that the *.bak files are always smaller then the
originals:
-rw------- 1 root root 412K 8. Sep 09:46 account_policy.tdb
-rw------- 1 root root 36K 13. Sep 20:55 account_policy.tdb.bak
-rw------- 1 root root 516K 8. Sep 09:46 registry.tdb
-rw------- 1 root root 52K 13. Sep 20:55 registry.tdb.bak
-rw------- 1 root root 412K 12. Sep 17:19 share_info.tdb
-rw------- 1 root root 48K 13. Sep 20:55 share_info.tdb.bak
Regards,
Marc
--
Marc Muehlfeld (IT-Leiter)
Zentrum fuer Humangenetik und Laboratoriumsmedizin
Dr. Klein, Dr. Rost und Kollegen
Lochhamer Str. 29 - D-82152 Martinsried
Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-780
http://www.medizinische-genetik.de
More information about the samba-technical
mailing list