aboutsummaryrefslogtreecommitdiff
path: root/doc/beam-restore.1in
blob: 6d24ad884e0b0c6e62800b4befe3f782badac269 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
.\" This file is part of BEAM -*- nroff -*-
.\" Copyright (C) 2012-2014 Sergey Poznyakoff
.\"
.\" BEAM is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 3, or (at your option)
.\" any later version.
.\"
.\" BEAM is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with BEAM.  If not, see <http://www.gnu.org/licenses/>.
.\"
.TH BEAM\-RESTORE 1 "March 19, 2014" "BEAM" "BEAM User Reference"
.SH NAME
beam\-restore \- restore file system from a backup.
.SH SYNOPSIS
.B beam restore
[\fB\-cntv\fR] [\fB\-\-confirm\fR] [\fB\-C\fR \fIDIR\fR]\
 [\fB\-\-directory\fR \fIDIR\fR] [\fB\-\-verbose\fR]
        [\fB\-\-dry\-run\fR] [\fB\-\-list\fR] [\fB\-\-logfile\fR \fIFILE\fR]\
 [\fB\-L\fR \fIN\fR] [\fB\-\-level\fR \fIN\fR]
        [\fB\-R\fR \fIN\fR] [\fB\-\-round\fR \fIN\fR] [\fB\-\-week\fR \fIN\fR]
        [\fBITEM\fR [\fBITEM\fR...]]

.B beam restore
[\fB\-h\fR] [\fB\-\-help\fR]

.B beam restore
[\fB\-V\fR] [\fB\-\-version\fR]
.SH DESCRIPTION
The
.B beam-restore
command restores the file system from incremental backups created
using
.BR beam "" backup (1).
.PP
The program reads its configuration from the file
.B beam.conf
located in the
.B @SYSCONFDIR@
directory, or from the file named in the environment variable
.BR BACKUP_CONFIG .
The configuration file must exist.
.PP
After loading the configuration file, the program examines its command
line for options that modify its behavior.  These are described in
detail in the section
.BR OPTIONS ,
below.
.PP
Once the configuration loaded, the
.B beam\-restore
command determines which backup archives to use for restoring.  Unless
being requested otherwise by the command line options, the utility
selects the most recent set of backup files.
.PP
Before starting the restore, the command displays the backup files it
has selected and asks the user if he wishes to proceed.  Empty line
(the \fBCR\fR alone) or any word beginning with \fBY\fR
(case-insensitive) is taken as affirmative.  Otherwise, a negative
answer is assumed and program terminates.
.PP
The program restores file systems and other backup items in the
order they are listed in the \fBbackup_items\fR configuration
variable.  The \fBITEM\fR arguments override this default.  If they
are present, the program will restore only those items that are listed
in the command line and exactly in the order they appear.
.SH OPTIONS
.TP
\fB\-c\fR, \fB\-\-confirm\fR
Do not ask for confirmation; run straight into restoring.
.TP
\fB\-C\fR, \fB\-\-directory\fR \fIDIR\fR
Restore into directory \fIDIR\fR instead of \fB/\fR.
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Increase verbosity.
.TP
\fB\-n\fR, \fB\-\-dry\-run\fR
Do nothing, but print what would have been done.
.TP
\fB\-t\fR, \fB\-\-list\fR
List archive files, instead of extracting from them.
.TP
\fB\-l\fR, \fB\-\-logfile\fR \fIFILE\fB
Log to \fIFILE\fR instead of the standard error.  This option implies
\fB\-\-confirm\fR.  Note also, that due to its specific nature
.B restore
ignores the \fBbackup_logfile\fR configuration setting.
.TP
\fB\-L\fR, \fB\-\-level\fR \fIN\fN
Set incremental dump level to stop at.
.TP
\fB\-R\fR, \fB\-\-round\fR \fIN\fR
Use archives from incremental round \fIN\fR.
.TP
\fB\-W\fR, \fB\-\-week\fR \fIN\fR
Use archives from week \fIN\fR.
.TP
\fB\-h\fR, \fB\-\-help\fR
Display a short help summary.
.TP
\fB\-V\fR, \fB\-\-version\fR
Display program version.
.SH EXAMPLES
.SH FILES
.TP
.BR @SYSCONFDIR@/beam.conf
Default configuration file.
.TP
.BR @LIBDIR@/beam
Backup module directory.  Whenever a backup item of type \fBT\fR is
requested, \fBrestore\fR will attempt to load from this directory a
file named \fBT.sh\fR.  This file provides methods and definitions
necessary to handle that particular item type.
.TP
.BR @LIBDIR@/beam/common.sh
Settings and definitions shared between
.BR beam\-backup (1),
.BR beam\-restore ,
and
.BR beam\-list (1).
.SH "SEE ALSO"
.BR beam (1),
.BR beam\-backup (1),
.BR beam\-list (1),
.BR beam.conf (5)
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
Report bugs to <@PACKAGE_BUGREPORT@>.
.\" Local variables:
.\" eval: (add-hook 'write-file-hooks 'time-stamp)
.\" time-stamp-start: ".TH [A-Z_][A-Z0-9_\\-]* [0-9] \""
.\" time-stamp-format: "%:B %:d, %:y"
.\" time-stamp-end: "\""
.\" time-stamp-line-limit: 20
.\" end:

Return to:

Send suggestions and report system problems to the System administrator.