Blame


1 058b0118 2005-01-03 devnull .TH VAC 1
2 058b0118 2005-01-03 devnull .SH NAME
3 405d555f 2008-06-14 rsc vac, unvac \- create, extract a vac archive on Venti
4 058b0118 2005-01-03 devnull .SH SYNOPSIS
5 058b0118 2005-01-03 devnull .B vac
6 058b0118 2005-01-03 devnull [
7 058b0118 2005-01-03 devnull .B -mqsv
8 058b0118 2005-01-03 devnull ] [
9 e05b0ff3 2008-07-03 rsc .B -a
10 e05b0ff3 2008-07-03 rsc .I vacfile
11 e05b0ff3 2008-07-03 rsc ] [
12 058b0118 2005-01-03 devnull .B -b
13 058b0118 2005-01-03 devnull .I blocksize
14 058b0118 2005-01-03 devnull ] [
15 058b0118 2005-01-03 devnull .B -d
16 058b0118 2005-01-03 devnull .I oldvacfile
17 058b0118 2005-01-03 devnull ] [
18 058b0118 2005-01-03 devnull .B -e
19 058b0118 2005-01-03 devnull .I exclude
20 058b0118 2005-01-03 devnull ] [
21 058b0118 2005-01-03 devnull .B -f
22 058b0118 2005-01-03 devnull .I vacfile
23 058b0118 2005-01-03 devnull ] [
24 058b0118 2005-01-03 devnull .B -i
25 058b0118 2005-01-03 devnull .I name
26 058b0118 2005-01-03 devnull ] [
27 058b0118 2005-01-03 devnull .B -h
28 058b0118 2005-01-03 devnull .I host
29 e05b0ff3 2008-07-03 rsc ] [
30 e05b0ff3 2008-07-03 rsc .B -x
31 e05b0ff3 2008-07-03 rsc .I excludefile
32 058b0118 2005-01-03 devnull ]
33 058b0118 2005-01-03 devnull .I file ...
34 405d555f 2008-06-14 rsc .PP
35 405d555f 2008-06-14 rsc .B unvac
36 405d555f 2008-06-14 rsc [
37 286bb40b 2008-12-07 rsc .B -Tcdtv
38 405d555f 2008-06-14 rsc ] [
39 405d555f 2008-06-14 rsc .B -h
40 405d555f 2008-06-14 rsc .I host
41 405d555f 2008-06-14 rsc ]
42 405d555f 2008-06-14 rsc .I vacfile
43 405d555f 2008-06-14 rsc [
44 405d555f 2008-06-14 rsc .I file ...
45 405d555f 2008-06-14 rsc ]
46 058b0118 2005-01-03 devnull .SH DESCRIPTION
47 058b0118 2005-01-03 devnull .I Vac
48 058b0118 2005-01-03 devnull creates an archival copy of Plan 9 file trees on Venti. It can be used
49 058b0118 2005-01-03 devnull to build a simple backup system. One of the unusual properties of Venti is
50 058b0118 2005-01-03 devnull that duplicate blocks are detected and coalesced. When
51 058b0118 2005-01-03 devnull .I vac
52 058b0118 2005-01-03 devnull is used on a file tree that shares data with an existing archive, the consumption of
53 058b0118 2005-01-03 devnull storage will be approximately equal to an incremental backup.
54 058b0118 2005-01-03 devnull This reduction in storage consumption occurs transparently to the user.
55 058b0118 2005-01-03 devnull .PP
56 058b0118 2005-01-03 devnull As an optimization, the
57 058b0118 2005-01-03 devnull .B -d
58 058b0118 2005-01-03 devnull and
59 058b0118 2005-01-03 devnull .B -q
60 058b0118 2005-01-03 devnull options, described below, can be used to explicitly create an archive relative to an existing archive.
61 058b0118 2005-01-03 devnull These options do not change the resulting archive generated by
62 058b0118 2005-01-03 devnull .IR vac ,
63 058b0118 2005-01-03 devnull but simply reduce the number of write operations to Venti.
64 058b0118 2005-01-03 devnull .PP
65 058b0118 2005-01-03 devnull The output of
66 058b0118 2005-01-03 devnull .I vac
67 405d555f 2008-06-14 rsc is the hexadecimal representation of the SHA1 fingerprint of the root of the archive, in this format:
68 058b0118 2005-01-03 devnull .IP
69 058b0118 2005-01-03 devnull .EX
70 058b0118 2005-01-03 devnull vac:64daefaecc4df4b5cb48a368b361ef56012a4f46
71 058b0118 2005-01-03 devnull .EE
72 058b0118 2005-01-03 devnull .PP
73 405d555f 2008-06-14 rsc The options are:
74 058b0118 2005-01-03 devnull .TP
75 e05b0ff3 2008-07-03 rsc .BI -a " vacfile
76 e05b0ff3 2008-07-03 rsc Specifies that vac should create or update a backup archive, inserting
77 e05b0ff3 2008-07-03 rsc the files under an extra two levels of directory hierarchy named
78 e05b0ff3 2008-07-03 rsc .I yyyy/mmdd
79 e05b0ff3 2008-07-03 rsc (year, month, day)
80 e05b0ff3 2008-07-03 rsc in the style of the dump file system
81 e05b0ff3 2008-07-03 rsc (see Plan 9's \fIfs\fR(4)).
82 e05b0ff3 2008-07-03 rsc If
83 e05b0ff3 2008-07-03 rsc .I vacfile
84 e05b0ff3 2008-07-03 rsc already exists, an additional backup day is added to the
85 e05b0ff3 2008-07-03 rsc existing hierarchy, behaving as though the
86 e05b0ff3 2008-07-03 rsc .B -d
87 e05b0ff3 2008-07-03 rsc flag was specified giving the most recent backup tree in the archive.
88 e05b0ff3 2008-07-03 rsc Typically, this option
89 e05b0ff3 2008-07-03 rsc is used as part of a nightly backup script.
90 e05b0ff3 2008-07-03 rsc This option cannot be used with
91 e05b0ff3 2008-07-03 rsc .B -d
92 e05b0ff3 2008-07-03 rsc or
93 e05b0ff3 2008-07-03 rsc .BR -f .
94 e05b0ff3 2008-07-03 rsc .TP
95 058b0118 2005-01-03 devnull .BI -b " blocksize
96 058b0118 2005-01-03 devnull Specifies the block size that data will be broken into.
97 058b0118 2005-01-03 devnull The units for the size can be specified by appending
98 058b0118 2005-01-03 devnull .L k
99 058b0118 2005-01-03 devnull to indicate kilobytes.
100 058b0118 2005-01-03 devnull The default is 8k.
101 058b0118 2005-01-03 devnull The size must be in the range
102 058b0118 2005-01-03 devnull of 512 bytes to 52k.
103 058b0118 2005-01-03 devnull .TP
104 058b0118 2005-01-03 devnull .BI -d " oldvacfile
105 058b0118 2005-01-03 devnull Reduce the number of blocks written to Venti by comparing the files to be stored with
106 058b0118 2005-01-03 devnull the contents of an existing
107 058b0118 2005-01-03 devnull .I vac
108 a7f1ab29 2011-05-10 rsc file tree whose score is stored in
109 058b0118 2005-01-03 devnull .IR oldvacfile .
110 058b0118 2005-01-03 devnull .TP
111 058b0118 2005-01-03 devnull .BI -e " exclude
112 058b0118 2005-01-03 devnull Do not include the file or directory specified by
113 058b0118 2005-01-03 devnull .IR exclude .
114 058b0118 2005-01-03 devnull This option may be repeated multiple times.
115 e05b0ff3 2008-07-03 rsc .I Exclude
116 e05b0ff3 2008-07-03 rsc can be a shell pattern as accepted by
117 e05b0ff3 2008-07-03 rsc .IR rc (1),
118 e05b0ff3 2008-07-03 rsc with one extension:
119 e05b0ff3 2008-07-03 rsc .B \&...
120 e05b0ff3 2008-07-03 rsc matches any sequence of characters including slashes.
121 058b0118 2005-01-03 devnull .TP
122 058b0118 2005-01-03 devnull .BI -f " vacfile
123 058b0118 2005-01-03 devnull The results of
124 058b0118 2005-01-03 devnull .I vac
125 a7f1ab29 2011-05-10 rsc are placed in
126 058b0118 2005-01-03 devnull .IR vacfile ,
127 058b0118 2005-01-03 devnull or the standard output if no file is given.
128 058b0118 2005-01-03 devnull .TP
129 058b0118 2005-01-03 devnull .BI -i " name
130 058b0118 2005-01-03 devnull Include standard input as one of the input files, storing it in the archive
131 058b0118 2005-01-03 devnull with the specified
132 058b0118 2005-01-03 devnull .IR name .
133 058b0118 2005-01-03 devnull .TP
134 058b0118 2005-01-03 devnull .BI -h " host
135 058b0118 2005-01-03 devnull The network address of the Venti server.
136 058b0118 2005-01-03 devnull The default is taken from the environment variable
137 058b0118 2005-01-03 devnull .BR venti .
138 058b0118 2005-01-03 devnull .\" If this variable does not exist, then the default is the
139 058b0118 2005-01-03 devnull .\" metaname
140 058b0118 2005-01-03 devnull .\" .BR $venti ,
141 058b0118 2005-01-03 devnull .\" which can be configured via
142 058b0118 2005-01-03 devnull .\" .IR ndb (6).
143 058b0118 2005-01-03 devnull .TP
144 058b0118 2005-01-03 devnull .B -m
145 058b0118 2005-01-03 devnull Expand and merge any
146 058b0118 2005-01-03 devnull .I vac
147 058b0118 2005-01-03 devnull archives that are found while reading the input files. This option is
148 058b0118 2005-01-03 devnull useful for building an archive from a collection of existing archives. Each archive is inserted
149 058b0118 2005-01-03 devnull into the new archive as if it had been unpacked in the directory in which it was found. Multiple
150 058b0118 2005-01-03 devnull archives can be unpacked in a single directory and the contents will be merged. To be detected, the
151 058b0118 2005-01-03 devnull archives must end in
152 058b0118 2005-01-03 devnull .LR .vac .
153 058b0118 2005-01-03 devnull Note, an archive is inserted by simply copying the root fingerprint and does not require
154 058b0118 2005-01-03 devnull the archive to be unpacked.
155 058b0118 2005-01-03 devnull .TP
156 058b0118 2005-01-03 devnull .B -q
157 058b0118 2005-01-03 devnull Increase the performance of the
158 e05b0ff3 2008-07-03 rsc .B -a
159 e05b0ff3 2008-07-03 rsc or
160 058b0118 2005-01-03 devnull .B -d
161 e05b0ff3 2008-07-03 rsc options by detecting unchanged files based on a match of the files name and other meta data,
162 058b0118 2005-01-03 devnull rather than examining the contents of the files.
163 058b0118 2005-01-03 devnull .TP
164 058b0118 2005-01-03 devnull .B -s
165 058b0118 2005-01-03 devnull Print out various statistics on standard error.
166 058b0118 2005-01-03 devnull .TP
167 058b0118 2005-01-03 devnull .B -v
168 058b0118 2005-01-03 devnull Produce more verbose output on standard error, including the name of the files added to the archive
169 058b0118 2005-01-03 devnull and the vac archives that are expanded and merged.
170 e05b0ff3 2008-07-03 rsc .TP
171 e05b0ff3 2008-07-03 rsc .BI -x " excfile
172 e05b0ff3 2008-07-03 rsc Read exclude patterns from the file
173 e05b0ff3 2008-07-03 rsc .IR excfile .
174 e05b0ff3 2008-07-03 rsc Blank lines and lines beginning with
175 e05b0ff3 2008-07-03 rsc .B #
176 e05b0ff3 2008-07-03 rsc are ignored.
177 e05b0ff3 2008-07-03 rsc All other lines should be of the form
178 e05b0ff3 2008-07-03 rsc .B include
179 e05b0ff3 2008-07-03 rsc .I pattern
180 e05b0ff3 2008-07-03 rsc or
181 e05b0ff3 2008-07-03 rsc .B exclude
182 e05b0ff3 2008-07-03 rsc .I pattern .
183 e05b0ff3 2008-07-03 rsc When considering whether to include a directory or file
184 e05b0ff3 2008-07-03 rsc in the vac archive,
185 e05b0ff3 2008-07-03 rsc the earliest matching pattern in the file
186 e05b0ff3 2008-07-03 rsc applies.
187 e05b0ff3 2008-07-03 rsc The patterns are the same syntax accepted by the
188 e05b0ff3 2008-07-03 rsc .B -e
189 e05b0ff3 2008-07-03 rsc option.
190 e05b0ff3 2008-07-03 rsc This option may be repeated multiple times.
191 405d555f 2008-06-14 rsc .PP
192 405d555f 2008-06-14 rsc .I Unvac
193 405d555f 2008-06-14 rsc lists or extracts files stored in the vac archive
194 5f1eaee2 2008-06-14 rsc .IR vacfile ,
195 405d555f 2008-06-14 rsc which can be either a vac archive string in the format
196 405d555f 2008-06-14 rsc given above or the name of a file containing one.
197 405d555f 2008-06-14 rsc If
198 405d555f 2008-06-14 rsc .I file
199 405d555f 2008-06-14 rsc arguments are given, only those files or directories
200 405d555f 2008-06-14 rsc will be extracted.
201 405d555f 2008-06-14 rsc The options are:
202 405d555f 2008-06-14 rsc .TP
203 405d555f 2008-06-14 rsc .B -T
204 405d555f 2008-06-14 rsc Set the modification time on extracted files
205 405d555f 2008-06-14 rsc to the time listed in the archive.
206 405d555f 2008-06-14 rsc .TP
207 405d555f 2008-06-14 rsc .B -c
208 405d555f 2008-06-14 rsc Write extracted files to standard output instead of creating a file.
209 405d555f 2008-06-14 rsc .TP
210 286bb40b 2008-12-07 rsc .B -d
211 286bb40b 2008-12-07 rsc Reduce the number of blocks read from Venti by
212 286bb40b 2008-12-07 rsc comparing the files to be stored with their counterparts
213 286bb40b 2008-12-07 rsc in the file system.
214 286bb40b 2008-12-07 rsc This option cannot be used with
215 286bb40b 2008-12-07 rsc .BR -c .
216 286bb40b 2008-12-07 rsc .TP
217 405d555f 2008-06-14 rsc .B -t
218 405d555f 2008-06-14 rsc Print a list of the files to standard output rather than extracting them.
219 405d555f 2008-06-14 rsc .TP
220 405d555f 2008-06-14 rsc .B -v
221 405d555f 2008-06-14 rsc If extracting files, print the name of each file and directory
222 405d555f 2008-06-14 rsc to standard error.
223 405d555f 2008-06-14 rsc If listing files, print metadata in addition to the names.
224 058b0118 2005-01-03 devnull .SH SOURCE
225 c3674de4 2005-01-11 devnull .B \*9/src/cmd/vac
226 058b0118 2005-01-03 devnull .SH "SEE ALSO"
227 405d555f 2008-06-14 rsc .IR vacfs (4),
228 405d555f 2008-06-14 rsc .IR venti (8)