1TDBBACKUP(8)              System Administration tools             TDBBACKUP(8)
2
3
4

NAME

6       tdbbackup - tool for backing up and for validating the integrity of
7       samba .tdb files
8

SYNOPSIS

10       tdbbackup [-s suffix] [-v] [-h] [-n hashsize] [-l]
11

DESCRIPTION

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

OPTIONS

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       -n hashsize
34           The -n option sets the hash size for the new backup tdb.
35
36       -l
37           This options disables any locking, by passing TDB_NOLOCK to
38           tdb_open_ex(). Only use this for database files which are not used
39           by any other process! And also only if it is otherwise not possible
40           to open the database, e.g. databases which were created with mutex
41           locking.
42

COMMANDS

44       GENERAL INFORMATION
45
46       The tdbbackup utility can safely be run at any time. It was designed so
47       that it can be used at any time to validate the integrity of tdb files,
48       even during Samba operation. Typical usage for the command will be:
49
50       tdbbackup [-s suffix] *.tdb
51
52       Before restarting samba the following command may be run to validate
53       .tdb files:
54
55       tdbbackup -v [-s suffix] *.tdb
56
57       Samba .tdb files are stored in various locations, be sure to run backup
58       all .tdb file on the system. Important files includes:
59
60       ·   secrets.tdb - usual location is in the /usr/local/samba/private
61           directory, or on some systems in /etc/samba.
62
63       ·   passdb.tdb - usual location is in the /usr/local/samba/private
64           directory, or on some systems in /etc/samba.
65
66       ·   *.tdb located in the /usr/local/samba/var directory or on some
67           systems in the /var/cache or /var/lib/samba directories.
68

VERSION

70       This man page is correct for version 3 of the Samba suite.
71

AUTHOR

73       The original Samba software and related utilities were created by
74       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
75       Source project similar to the way the Linux kernel is developed.
76
77       The tdbbackup man page was written by John H Terpstra.
78
79
80
81Samba 3.6                         2015-04-25                      TDBBACKUP(8)
Impressum