chiark / gitweb /
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/disorder
[disorder] / doc / disorder-dump.8.in
CommitLineData
460b9539 1.\"
5aff007d 2.\" Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell
460b9539 3.\"
e7eb3a27 4.\" This program is free software: you can redistribute it and/or modify
460b9539 5.\" it under the terms of the GNU General Public License as published by
e7eb3a27 6.\" the Free Software Foundation, either version 3 of the License, or
460b9539 7.\" (at your option) any later version.
e7eb3a27
RK
8.\"
9.\" This program is distributed in the hope that it will be useful,
10.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
11.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12.\" GNU General Public License for more details.
13.\"
460b9539 14.\" You should have received a copy of the GNU General Public License
e7eb3a27 15.\" along with this program. If not, see <http://www.gnu.org/licenses/>.
460b9539 16.\"
17.TH disorder-dump 8
18.SH NAME
0d350ff0 19disorder\-dump \- DisOrder dump/undump tool
460b9539 20.SH SYNOPSIS
0d350ff0 21.B disorder\-dump
460b9539 22.RI [ OPTIONS ]
0d350ff0 23.BR \-\-dump | \-\-undump
460b9539 24.I PATH
25.br
0d350ff0 26.B disorder\-dump
460b9539 27.RI [ OPTIONS ]
0d350ff0 28.BR \-\-recompute\-aliases
460b9539 29.SH DESCRIPTION
0d350ff0 30.B disorder\-dump
460b9539 31is used to dump and restore preferences data.
32.SH OPTIONS
33.TP
0d350ff0 34.B \-\-dump
c0c23a60
RK
35Write preferences data to \fIPATH\fR.
36This can safely be used whether or not the server is running.
460b9539 37.TP
0d350ff0 38.B \-\-undump
460b9539 39Read preferences data from \fIPATH\fR, replacing (unrecoverably) the
c0c23a60
RK
40current settings.
41This should normally only be done while the server is not running.
460b9539 42.IP
43If the server is running then it may hang while the undump completes.
44.TP
0d350ff0 45.B \-\-recover
c0c23a60
RK
46Perform database recovery at startup.
47The server should not be running if this option is used.
460b9539 48.TP
0d350ff0 49.B \-\-recompute\-aliases
c0c23a60
RK
50Recompute aliases without dumping or undumping the databases.
51Under normal circumstances this is never necessary.
460b9539 52.TP
0d350ff0 53.B \-\-remove\-pathless
460b9539 54Remove tracks with no associated path when undumping or when
c0c23a60
RK
55recomputing aliases.
56In normal use such tracks are all aliases.
460b9539 57.TP
0d350ff0 58.B \-\-config \fIPATH\fR, \fB\-c \fIPATH
c0c23a60
RK
59Set the configuration file.
60The default is
8ab2aa9f
MW
61.B DISORDER_CONFIG
62environment variable, defaulting to
460b9539 63.IR /etc/disorder/config .
64.TP
e5af9e8d
RK
65.B \-\-no\-setuid
66Do not change UID.
67.TP
0d350ff0 68.B \-\-debug\fR
460b9539 69Enable debugging.
70.TP
0d350ff0 71.B \-\-help\fR, \fB\-h
460b9539 72Display a usage message.
73.TP
0d350ff0 74.B \-\-version\fR, \fB\-V
460b9539 75Display version number.
76.SH NOTES
77This program might be used for a number of purposes:
78.TP 2
79.B .
80Taking a backup of the non-regeneratable parts of DisOrder's databases.
81.TP
82.B .
83Indoctrinating one DisOrder server with the preference values of
c0c23a60 84another.
460b9539 85.PP
86The output file is versioned, so versions produced from a future
0d350ff0 87version of DisOrder may be rejected by \fB\-\-undump\fR.
c0c23a60 88It has an end marker so truncated inputs will also be rejected.
460b9539 89.PP
90The input or output file must be a regular file, as it may be rewound
91and re-read or re-written multiple times.
92.PP
93The dump or undump operation is carried out inside a single
94transaction, so it should seem atomic from the point of view of
95anything else accessing the databases.
96.PP
c0c23a60
RK
97The server performs normal database recovery on startup.
98However if the database needs normal recovery before an undump can succeed and
460b9539 99you don't want to start the server for some reason then the
0d350ff0 100.B \-\-recover
c0c23a60
RK
101operation is available for this purpose.
102No other process should be accessing the database at the time.
460b9539 103.PP
104DisOrder does not currently support catastrophic recovery.
105.PP
c0c23a60 106This program requires write access to DisOrder's databases.
e5af9e8d
RK
107Therefore it should be run as the same user as the server or as root.
108.PP
109If a restore is done as root then it will automatically change to the
110server user, so that the new files end up with the right ownership.
111This can be suppressed with the \fB\-\-no\-setuid\fR option.
460b9539 112.SH FILES
113.TP
114.I pkgconfdir/config
c0c23a60
RK
115Global configuration file.
116See \fBdisorder_config\fR(5).
460b9539 117.SH "SEE ALSO"
118\fBdisorder\fR(1), \fBdisorder_config\fR(5), \fBdisorderd\fR(8)
119.\" Local Variables:
120.\" mode:nroff
121.\" End: