Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tdbbackup(8) [debian man page]

TDBBACKUP(8)                                                System Administration tools                                               TDBBACKUP(8)

NAME
tdbbackup - tool for backing up and for validating the integrity of samba .tdb files SYNOPSIS
tdbbackup [-s suffix] [-v] [-h] DESCRIPTION
This tool is part of the samba(1) suite. tdbbackup is a tool that may be used to backup samba .tdb files. This tool may also be used to verify the integrity of the .tdb files prior to samba startup or during normal operation. If it finds file damage and it finds a prior backup the backup file will be restored. OPTIONS
-h Get help information. -s suffix The -s option allows the adminisistrator to specify a file backup extension. This way it is possible to keep a history of tdb backup files by using a new suffix for each backup. -v The -v will check the database for damages (currupt data) which if detected causes the backup to be restored. COMMANDS
GENERAL INFORMATION The tdbbackup utility can safely be run at any time. It was designed so that it can be used at any time to validate the integrity of tdb files, even during Samba operation. Typical usage for the command will be: tdbbackup [-s suffix] *.tdb Before restarting samba the following command may be run to validate .tdb files: tdbbackup -v [-s suffix] *.tdb Samba .tdb files are stored in various locations, be sure to run backup all .tdb file on the system. Important files includes: o secrets.tdb - usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba. o passdb.tdb - usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba. o *.tdb located in the /usr/local/samba/var directory or on some systems in the /var/cache or /var/lib/samba directories. VERSION
This man page is correct for version 3 of the Samba suite. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The tdbbackup man page was written by John H Terpstra. Samba 3.5 06/18/2010 TDBBACKUP(8)

Check Out this Related Man Page

DBWRAP_TOOL(1)						    System Administration tools 					    DBWRAP_TOOL(1)

NAME
dbwrap_tool - low level TDB/CTDB manipulation tool using the dbwrap interface SYNOPSIS
dbwrap_tool [-p|--persistent] [-d <debug level>] [-s <config file>] [-l <log file base>] [-V] [--option=<name>=<value>] {<database>} {<operation>} [<key> [<type> [<value>] ]] DESCRIPTION
This tool is part of the samba(7) suite. The dbwrap_tool program is used to read and manipulate TDB/CTDB databases using the dbwrap interface. The following database operations are available: o fetch: fetch a record o store: create or modify a record o delete: remove a record o exists: test for existence of a record o erase: remove all records o listkeys: list all available records o listwatchers: list processes, which are waiting for changes in a record The following types are available: o int32: signed 32bit integer o uint32: unsigned 32bit integer o string: "hello world" o hex: hex strings like "68656C6C6F20776F726C6400" ("hello world") OPTIONS
-p|--persistent Open the database as a persistent database. If this option is not specified, the database is opened as non-persistent. -d|--debuglevel=level level is an integer from 0 to 10. The default value if this parameter is not specified is 1. The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of information about operations carried out. Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic. Note that specifying this parameter here will override the log level parameter in the smb.conf file. -V|--version Prints the program version number. -s|--configfile=<configuration file> The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See smb.conf for more information. The default configuration file name is determined at compile time. -l|--log-basename=logdirectory Base directory name for log/debug files. The extension ".progname" will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never removed by the client. --option=<name>=<value> Set the smb.conf(5) option "<name>" to value "<value>" from the command line. This overrides compiled-in defaults and options read from the configuration file. -?|--help Print a summary of command line options. --usage Display brief usage message. COMMANDS
fetch dbwrap_tool <database> fetch <key> <type> store dbwrap_tool <database> store <key> <type> <value> delete dbwrap_tool <database> delete <key> exists dbwrap_tool <database> exists <key> erase dbwrap_tool <database> erase listkeys dbwrap_tool <database> listkeys listwatchers dbwrap_tool <database> listwatchers EXAMPLES
List all keys from winbindd_idmap.tdb dbwrap_tool --persistent winbindd_idmap.tdb listkeys Fetch record with key "USER HWM" as uint32 dbwrap_tool --persistent winbindd_idmap.tdb fetch "USER HWM" uint32 Remove record with key "USER HWM" dbwrap_tool --persistent winbindd_idmap.tdb remove "USER HWM" Store and overwrite record "USER HWM" with value 214 uint32: dbwrap_tool --persistent winbindd_idmap.tdb store "USER HWM" uint32 214 hex: dbwrap_tool --persistent winbindd_idmap.tdb store "USER HWM" hex D6000000 NOTES
Use with caution! VERSION
This man page is correct for version 3 of the Samba suite. SEE ALSO
smbd(8), samba(7) AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The dbwrap_tool manpage was written by Bjoern Baumbach. Samba 4.0 06/17/2014 DBWRAP_TOOL(1)
Man Page