TDB: Difference between revisions

From SambaWiki
(Put a real article up, last page was spam for google ranks!)
(fix dead link to samba howto collection)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Samba stores its data in TDB files. TDB stands for "Tiny database" and was first introduced in Samba 3.0 as a way to store information quickly and effectively.
Samba stores its data in TDB files. TDB stands for "Trivial database" and was first introduced in Samba as a way to store information quickly and effectively. Its interface is very similar to that of GDBM, but in contradiction to GDBM it supports multiple writers and readers simultaneously.


Refer to the [[TDB_Locations|TDB Locations]] page for detailed information about the purpose of the various TDB files.
TDB files normally are stored in 2 locations: /var/lock (your private directory where you smbpasswd is stored).


There is also section [http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html#tdbdocs TDB Database Information] in the Samba HOWTO Collection with details on what the purpose of the various TDB files employed by Samba 3 is.
They sometimes break and the only way to fix them is to stop samba, move them into a suspect folder, and restart samba. Samba will recreate the files. There are 2 tools available but they only let you see what is inside the database or back the database up

Latest revision as of 11:39, 21 October 2013

Samba stores its data in TDB files. TDB stands for "Trivial database" and was first introduced in Samba as a way to store information quickly and effectively. Its interface is very similar to that of GDBM, but in contradiction to GDBM it supports multiple writers and readers simultaneously.

Refer to the TDB Locations page for detailed information about the purpose of the various TDB files.

There is also section TDB Database Information in the Samba HOWTO Collection with details on what the purpose of the various TDB files employed by Samba 3 is.