summaryrefslogtreecommitdiff
path: root/docs/htmldocs/tdbbackup.8.html
blob: d91b41cf77302a02fca49cc52ab9f96da5a9c3a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>tdbbackup</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.60.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="tdbbackup.8"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p>tdbbackup &#8212; tool for backing up and for validating the integrity of samba .tdb files</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><tt class="command">tdbbackup</tt>  [-s suffix] [-v] [-h]</p></div></div><div class="refsect1" lang="en"><h2>DESCRIPTION</h2><p>This tool is part of the <a href="Samba.1.html"><span class="citerefentry"><span class="refentrytitle">Samba</span>(1)</span></a> suite.</p><p><b class="command">tdbbackup</b> 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, in which case, if it find file damage and it finds a prior backup
	it will restore the backup file.
	</p></div><div class="refsect1" lang="en"><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-h</span></dt><dd><p>
		Get help information.
		</p></dd><dt><span class="term">-s suffix</span></dt><dd><p>
		The <b class="command">-s</b> 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.
		</p></dd><dt><span class="term">-v</span></dt><dd><p>
		The <b class="command">-v</b> will check the database for damages (currupt data)
		which if detected causes the backup to be restored.
		</p></dd></dl></div></div><div class="refsect1" lang="en"><h2>COMMANDS</h2><p><span class="emphasis"><em>GENERAL INFORMATION</em></span></p><p>
	The <b class="command">tdbbackup</b> utility should be run as soon as samba has shut down.
	Do NOT run this command on a live database. Typical usage for the command will be:
	</p><p>tdbbackup [-s suffix] *.tdb</p><p>
	Before restarting samba the following command may be run to validate .tdb files:
	</p><p>tdbbackup -v [-s suffix] *.tdb</p><p>
	Samba .tdb files are stored in various locations, be sure to run backup all
	.tdb file on the system. Imporatant files includes:
	</p><div class="itemizedlist"><ul type="disc"><li><p>
		<b class="command">secrets.tdb</b> - usual location is in the /usr/local/samba/private
		directory, or on some systems in /etc/samba.
		</p></li><li><p>
		<b class="command">passdb.tdb</b> - usual location is in the /usr/local/samba/private
		directory, or on some systems in /etc/samba.
		</p></li><li><p>
		<b class="command">*.tdb</b> located in the /usr/local/samba/var directory or on some
		systems in the /var/cache or /var/lib/samba directories.
		</p></li></ul></div></div><div class="refsect1" lang="en"><h2>VERSION</h2><p>This man page is correct for version 3.0 of the Samba suite.</p></div><div class="refsect1" lang="en"><h2>AUTHOR</h2><p>
	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.
	</p><p>The tdbbackup man page was written by John H Terpstra.</p></div></div></body></html>