Imported Upstream version 3.2.0
[debian/amanda] / man / amvault.8
1 '\" t
2 .\"     Title: amvault
3 .\"    Author: Dustin J. Mitchell <dustin@zmanda.com>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
5 .\"      Date: 10/18/2010
6 .\"    Manual: System Administration Commands
7 .\"    Source: Amanda 3.2.0
8 .\"  Language: English
9 .\"
10 .TH "AMVAULT" "8" "10/18/2010" "Amanda 3\&.2\&.0" "System Administration Commands"
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 amvault \- Copy Amanda dumps from one volume to another
23 .SH "SYNOPSIS"
24 .HP \w'\fBamvault\fR\ 'u
25 \fBamvault\fR [\fB\-o\fR\ \fIconfigoption\fR...] [\-q] [\-\-quiet] [\-n] [\-\-dry\-run] [\-\-fulls\-only] [\-\-export] [\fB\-\-src\-timestamp\fR\ \fIsrc\-timestamp\fR]
26 .br
27 \fB\-\-label\-template\fR\ \fIlabel\-template\fR \fB\-\-dst\-changer\fR\ \fIdst\-changer\fR [\fB\-\-autolabel\fR\ \fIautolabel\-arg\fR...]
28 .br
29 \fIconfig\fR [\fIhostname\fR\ [\ \fIdisk\fR\ [\ \fIdate\fR\ [\ \fIlevel\fR\ [\ \fIhostname\fR\ [\&.\&.\&.]\ ]\ ]\ ]\ ]]
30 .SH "WARNING"
31 .PP
32 This application is not yet in its final form, and is subject to major revision in subsequent versions of Amanda\&. Backward compatibility is not guaranteed\&.
33 .PP
34 Note that Amanda restore/recover operations will request tertiary media by label when dumpfiles are not found on secondary media, but there is no provision to automatically fetch such media from a different changer
35 .PP
36 Feedback on and patches to this application are invited and encouraged!
37 .SH "DESCRIPTION"
38 .PP
39 Amvault is conceptually equivalent to "amfetchdump | taper"\&. That is, it reads specified dumps from secondary media and re\-writes them on tertiary media\&.
40 .PP
41 \fBAmvault\fR
42 Copies data from the run with timestamp
43 \fBsrc\-timestamp\fR
44 onto volumes using the changer
45 \fBdst\-changer\fR, and labeling new volumes with
46 \fBlabel\-template\fR\&. If
47 \fBsrc\-timestamp\fR
48 is "latest", then the most recent amdump or amflush run will be used\&. If
49 \fB\-\-fulls\-only\fR
50 is given, then only full (level\-0) dumps are copied\&.
51 .PP
52 The
53 \fB\-\-quiet\fR
54 (\fB\-q\fR) option will eliminate non\-error messages, and is useful when running amvault from cron\&. The
55 \fB\-\-dry\-run\fR
56 (\fB\-n\fR) option will cause amvault to print the dumps it would vault, but not actually perform any vaulting operations\&.
57 .SS "Secondary Media"
58 .PP
59 The dumps to be read from secondary media can be specified by any combination of dump specifications,
60 \fB\-\-fulls\-only\fR, and
61 \fB\-\-src\-timestamp\fR\&. At least one must be specified, lest amvault attempt to vault all dumps in the catalog\&. See
62 \fBamanda-match\fR(7)
63 for more information on dump specifications\&.
64 .PP
65 Note that the datestamp given in the dumpspec is the
66 \fIdump\fR
67 datestamp \- the run in which the backup was taken on the Amanda client\&. The
68 \fB\-\-src\-timestamp\fR, on the other hand, is the
69 \fIwrite\fR
70 timestamp \- the run in which the dump was written to secondary media\&. The latter option facilitates duplicating the results of an entire backup run, including any dumps that might have been flushed from holding disk\&.
71 .SS "Tertiary Media"
72 .PP
73 The
74 \fB\-\-dst\-changer\fR
75 must be specified, and names the changer in which tertiary media are stored\&. In general, this should be different from the secondary changer, to eliminate the possibility of overwriting secondary media with tertiary data\&.
76 .PP
77 The changer parameter should specify the name of a changer defined in
78 \fBamanda.conf\fR(5)\&. For example:
79 .sp
80 .nf
81 define changer vaulting_tape {
82     tapedev "/dev/rmt/1n"
83     tpchanger "chg\-zd\-mtx"
84     changerdev "/dev/sg0"
85     changerfile "vaulting\-changer\&.conf"
86 }
87 .fi
88 .PP
89 The
90 \fB\-\-label\-template\fR
91 option is required, and specifies a label template which is used to generate new labels for tertiary volumes\&. The
92 \fB\-\-autolabel\fR
93 option works just like the
94 \fBautolabel\fR
95 parameter in
96 \fBamanda.conf\fR(5), and can be specified multiple times if necessary\&. The default is \'empty\'\&.
97 .PP
98 If
99 \fBamanda.conf\fR(5)
100 contains the new
101 \fBpart\-size\fR
102 splitting parameters, then amvault will use them without any additional configuration\&. However, if the configuration still uses the old splitting parameters (\fBtape_splitsize\fR,
103 \fBsplit_diskbuffer\fR, and
104 \fBfallback_splitsize\fR), then amvault will need some additional configuration in order to properly split dumps to tertiary media\&. To do so, specify a new tapetype in
105 \fBamanda.conf\fR(5), say "TERTIARY", and set the
106 \fBpart\-size\fR
107 and other appropriate parameters there\&. Then reference that tapetype in the amvault invocation:
108 .sp
109 .nf
110     amvault \-otapetype=TERTIARY \&.\&.\&.
111 .fi
112 .PP
113 The
114 \fB\-\-export\fR
115 option will cause amvault to attempt to move completed tertiary volumes to import/export slots, where they can be more easily removed by an operator\&.
116 .SH "SEE ALSO"
117 .PP
118 \fBamanda\fR(8),
119 \fBamanda-changers\fR(7),
120 \fBamfetchdump\fR(8)
121 .PP
122 The Amanda Wiki:
123 : http://wiki.zmanda.com/
124 .SH "AUTHOR"
125 .PP
126 \fBDustin J\&. Mitchell\fR <\&dustin@zmanda\&.com\&>
127 .RS 4
128 Zmanda, Inc\&. (http://www\&.zmanda\&.com)
129 .RE