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

NAME

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

SYNOPSIS

10       ntdbbackup [-s suffix] [-v] [-h]
11

DESCRIPTION

13       This tool is part of the samba(1) suite.
14
15       ntdbbackup is a tool that may be used to backup samba .ntdb files. This
16       tool may also be used to verify the integrity of the .ntdb 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 ntdb 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

COMMANDS

34       GENERAL INFORMATION
35
36       The ntdbbackup utility can safely be run at any time. It was designed
37       so that it can be used at any time to validate the integrity of ntdb
38       files, even during Samba operation. Typical usage for the command will
39       be:
40
41       ntdbbackup [-s suffix] *.ntdb
42
43       Before restarting samba the following command may be run to validate
44       .ntdb files:
45
46       ntdbbackup -v [-s suffix] *.ntdb
47
48       Note that Samba 4 can use .tdb files instead, so you should use
49       tdbbackup on those files.
50
51       Samba .tdb and .ntdb files are stored in various locations, be sure to
52       run backup all .(n)tdb files on the system. Important files includes:
53
54       ·    secrets.(n)tdb - usual location is in the /usr/local/samba/private
55           directory, or on some systems in /etc/samba.
56
57       ·    passdb.(n)tdb - usual location is in the /usr/local/samba/private
58           directory, or on some systems in /etc/samba.
59
60       ·    *.tdb and *.ntdb located in the /usr/local/samba/var directory or
61           on some systems in the /var/cache or /var/lib/samba directories.
62

VERSION

64       This man page is correct for version 4 of the Samba suite.
65

SEE ALSO

67       tdbbackup(8), ntdbrestore(8)
68

AUTHOR

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 ntdbbackup man page was written by Rusty Russell, based on the
75       tdbbackup man page by John H Terpstra.
76
77
78
79Samba 4.1                         06/19/2018                     NTDBBACKUP(8)
Impressum