1TDBBACKUP(8) System Administration tools TDBBACKUP(8)
2
3
4
6 tdbbackup - tool for backing up and for validating the integrity of
7 samba .tdb files
8
10 tdbbackup [-s suffix] [-v] [-h] [-l]
11
13 This tool is part of the samba(1) suite.
14
15 tdbbackup is a tool that may be used to backup samba .tdb files. This
16 tool may also be used to verify the integrity of the .tdb files prior
17 to samba startup or during normal operation. If it finds file damage
18 and it finds a prior backup the backup file will be restored.
19
21 -h
22 Get help information.
23
24 -s suffix
25 The -s option allows the administrator to specify a file backup
26 extension. This way it is possible to keep a history of tdb backup
27 files by using a new suffix for each backup.
28
29 -v
30 The -v will check the database for damages (corrupt data) which if
31 detected causes the backup to be restored.
32
33 -l
34 This options disables any locking, by passing TDB_NOLOCK to
35 tdb_open_ex(). Only use this for database files which are not used
36 by any other process! And also only if it is otherwise not possible
37 to open the database, e.g. databases which were created with mutex
38 locking.
39
41 GENERAL INFORMATION
42
43 The tdbbackup utility can safely be run at any time. It was designed so
44 that it can be used at any time to validate the integrity of tdb files,
45 even during Samba operation. Typical usage for the command will be:
46
47 tdbbackup [-s suffix] *.tdb
48
49 Before restarting samba the following command may be run to validate
50 .tdb files:
51
52 tdbbackup -v [-s suffix] *.tdb
53
54 Samba .tdb files are stored in various locations, be sure to run backup
55 all .tdb file on the system. Important files includes:
56
57 · secrets.tdb - usual location is in the /usr/local/samba/private
58 directory, or on some systems in /etc/samba.
59
60 · passdb.tdb - usual location is in the /usr/local/samba/private
61 directory, or on some systems in /etc/samba.
62
63 · *.tdb located in the /usr/local/samba/var directory or on some
64 systems in the /var/cache or /var/lib/samba directories.
65
67 This man page is correct for version 3 of the Samba suite.
68
70 The original Samba software and related utilities were created by
71 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
72 Source project similar to the way the Linux kernel is developed.
73
74 The tdbbackup man page was written by John H Terpstra.
75
76
77
78Samba 3.6 2015-04-25 TDBBACKUP(8)