| 1 | '\" t | 
|---|
| 2 | .\"     Title: tdbbackup | 
|---|
| 3 | .\"    Author: [see the "AUTHOR" section] | 
|---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> | 
|---|
| 5 | .\"      Date: 08/02/2011 | 
|---|
| 6 | .\"    Manual: System Administration tools | 
|---|
| 7 | .\"    Source: Samba 3.5 | 
|---|
| 8 | .\"  Language: English | 
|---|
| 9 | .\" | 
|---|
| 10 | .TH "TDBBACKUP" "8" "08/02/2011" "Samba 3\&.5" "System Administration tools" | 
|---|
| 11 | .\" ----------------------------------------------------------------- | 
|---|
| 12 | .\" * set default formatting | 
|---|
| 13 | .\" ----------------------------------------------------------------- | 
|---|
| 14 | .\" disable hyphenation | 
|---|
| 15 | .nh | 
|---|
| 16 | .\" disable justification (adjust text to left margin only) | 
|---|
| 17 | .ad l | 
|---|
| 18 | .\" ----------------------------------------------------------------- | 
|---|
| 19 | .\" * MAIN CONTENT STARTS HERE * | 
|---|
| 20 | .\" ----------------------------------------------------------------- | 
|---|
| 21 | .SH "NAME" | 
|---|
| 22 | tdbbackup \- tool for backing up and for validating the integrity of samba \&.tdb files | 
|---|
| 23 | .SH "SYNOPSIS" | 
|---|
| 24 | .HP \w'\ 'u | 
|---|
| 25 | tdbbackup [\-s\ suffix] [\-v] [\-h] | 
|---|
| 26 | .SH "DESCRIPTION" | 
|---|
| 27 | .PP | 
|---|
| 28 | This tool is part of the | 
|---|
| 29 | \fBsamba\fR(1) | 
|---|
| 30 | suite\&. | 
|---|
| 31 | .PP | 
|---|
| 32 | tdbbackup | 
|---|
| 33 | 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\&. | 
|---|
| 34 | .SH "OPTIONS" | 
|---|
| 35 | .PP | 
|---|
| 36 | \-h | 
|---|
| 37 | .RS 4 | 
|---|
| 38 | Get help information\&. | 
|---|
| 39 | .RE | 
|---|
| 40 | .PP | 
|---|
| 41 | \-s suffix | 
|---|
| 42 | .RS 4 | 
|---|
| 43 | The | 
|---|
| 44 | \-s | 
|---|
| 45 | 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\&. | 
|---|
| 46 | .RE | 
|---|
| 47 | .PP | 
|---|
| 48 | \-v | 
|---|
| 49 | .RS 4 | 
|---|
| 50 | The | 
|---|
| 51 | \-v | 
|---|
| 52 | will check the database for damages (currupt data) which if detected causes the backup to be restored\&. | 
|---|
| 53 | .RE | 
|---|
| 54 | .SH "COMMANDS" | 
|---|
| 55 | .PP | 
|---|
| 56 | \fIGENERAL INFORMATION\fR | 
|---|
| 57 | .PP | 
|---|
| 58 | The | 
|---|
| 59 | tdbbackup | 
|---|
| 60 | 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: | 
|---|
| 61 | .PP | 
|---|
| 62 | tdbbackup [\-s suffix] *\&.tdb | 
|---|
| 63 | .PP | 
|---|
| 64 | Before restarting samba the following command may be run to validate \&.tdb files: | 
|---|
| 65 | .PP | 
|---|
| 66 | tdbbackup \-v [\-s suffix] *\&.tdb | 
|---|
| 67 | .PP | 
|---|
| 68 | Samba \&.tdb files are stored in various locations, be sure to run backup all \&.tdb file on the system\&. Important files includes: | 
|---|
| 69 | .sp | 
|---|
| 70 | .RS 4 | 
|---|
| 71 | .ie n \{\ | 
|---|
| 72 | \h'-04'\(bu\h'+03'\c | 
|---|
| 73 | .\} | 
|---|
| 74 | .el \{\ | 
|---|
| 75 | .sp -1 | 
|---|
| 76 | .IP \(bu 2.3 | 
|---|
| 77 | .\} | 
|---|
| 78 |  | 
|---|
| 79 | secrets\&.tdb | 
|---|
| 80 | \- usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba\&. | 
|---|
| 81 | .RE | 
|---|
| 82 | .sp | 
|---|
| 83 | .RS 4 | 
|---|
| 84 | .ie n \{\ | 
|---|
| 85 | \h'-04'\(bu\h'+03'\c | 
|---|
| 86 | .\} | 
|---|
| 87 | .el \{\ | 
|---|
| 88 | .sp -1 | 
|---|
| 89 | .IP \(bu 2.3 | 
|---|
| 90 | .\} | 
|---|
| 91 |  | 
|---|
| 92 | passdb\&.tdb | 
|---|
| 93 | \- usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba\&. | 
|---|
| 94 | .RE | 
|---|
| 95 | .sp | 
|---|
| 96 | .RS 4 | 
|---|
| 97 | .ie n \{\ | 
|---|
| 98 | \h'-04'\(bu\h'+03'\c | 
|---|
| 99 | .\} | 
|---|
| 100 | .el \{\ | 
|---|
| 101 | .sp -1 | 
|---|
| 102 | .IP \(bu 2.3 | 
|---|
| 103 | .\} | 
|---|
| 104 |  | 
|---|
| 105 | *\&.tdb | 
|---|
| 106 | located in the /usr/local/samba/var directory or on some systems in the /var/cache or /var/lib/samba directories\&. | 
|---|
| 107 | .SH "VERSION" | 
|---|
| 108 | .PP | 
|---|
| 109 | This man page is correct for version 3 of the Samba suite\&. | 
|---|
| 110 | .SH "AUTHOR" | 
|---|
| 111 | .PP | 
|---|
| 112 | 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\&. | 
|---|
| 113 | .PP | 
|---|
| 114 | The tdbbackup man page was written by John H Terpstra\&. | 
|---|