Blob


1 <head>
2 <title>vac(1) - Plan 9 from User Space</title>
3 <meta content="text/html; charset=utf-8" http-equiv=Content-Type>
4 </head>
5 <body bgcolor=#ffffff>
6 <table border=0 cellpadding=0 cellspacing=0 width=100%>
7 <tr height=10><td>
8 <tr><td width=20><td>
9 <tr><td width=20><td><b>VAC(1)</b><td align=right><b>VAC(1)</b>
10 <tr><td width=20><td colspan=2>
11 <br>
12 <p><font size=+1><b>NAME </b></font><br>
14 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
16 vac &ndash; create a vac archive on Venti<br>
18 </table>
19 <p><font size=+1><b>SYNOPSIS </b></font><br>
21 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
23 <tt><font size=+1>vac</font></tt> [ <tt><font size=+1>&#8722;mqsv</font></tt> ] [ <tt><font size=+1>&#8722;b</font></tt> <i>blocksize</i> ] [ <tt><font size=+1>&#8722;d</font></tt> <i>oldvacfile</i> ] [ <tt><font size=+1>&#8722;e</font></tt> <i>exclude</i>
24 ] [ <tt><font size=+1>&#8722;f</font></tt> <i>vacfile</i> ] [ <tt><font size=+1>&#8722;i</font></tt> <i>name</i> ] [ <tt><font size=+1>&#8722;h</font></tt> <i>host</i> ] <i>file ...<br>
25 </i>
26 </table>
27 <p><font size=+1><b>DESCRIPTION </b></font><br>
29 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
31 <i>Vac</i> creates an archival copy of Plan 9 file trees on Venti. It
32 can be used to build a simple backup system. One of the unusual
33 properties of Venti is that duplicate blocks are detected and
34 coalesced. When <i>vac</i> is used on a file tree that shares data with
35 an existing archive, the consumption of storage will be approximately
36 equal to an incremental backup. This reduction in storage consumption
37 occurs transparently to the user.
38 <table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
40 As an optimization, the <tt><font size=+1>&#8722;d</font></tt> and <tt><font size=+1>&#8722;q</font></tt> options, described below, can
41 be used to explicitly create an archive relative to an existing
42 archive. These options do not change the resulting archive generated
43 by <i>vac</i>, but simply reduce the number of write operations to Venti.
45 <table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
47 The output of <i>vac</i> is the hexadecimal representation of the Sha1
48 fingerprint of the root of the archive, in this format:<br>
50 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
52 <tt><font size=+1>vac:64daefaecc4df4b5cb48a368b361ef56012a4f46<br>
54 <table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
55 </font></tt>
57 </table>
58 Option to <i>vac</i> are:<br>
59 <tt><font size=+1>&#8722;b</font></tt> <i>blocksize<br>
60 </i>
61 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
63 Specifies the block size that data will be broken into. The units
64 for the size can be specified by appending <tt><font size=+1>k</font></tt> to indicate kilobytes.
65 The default is 8k. The size must be in the range of 512 bytes
66 to 52k.<br>
68 </table>
69 <tt><font size=+1>&#8722;d</font></tt> <i>oldvacfile<br>
70 </i>
71 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
73 Reduce the number of blocks written to Venti by comparing the
74 files to be stored with the contents of an existing <i>vac</i> file tree
75 given by <i>oldvacfile</i>.<br>
77 </table>
78 <tt><font size=+1>&#8722;e</font></tt> <i>exclude<br>
79 </i>
80 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
82 Do not include the file or directory specified by <i>exclude</i>. This
83 option may be repeated multiple times.<br>
85 </table>
86 <tt><font size=+1>&#8722;f</font></tt> <i>vacfile<br>
87 </i>
88 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
90 The results of <i>vac</i> are place in <i>vacfile</i>, or the standard output
91 if no file is given.<br>
93 </table>
94 <tt><font size=+1>&#8722;i</font></tt> <i>name<br>
95 </i>
96 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
98 Include standard input as one of the input files, storing it in
99 the archive with the specified <i>name</i>.<br>
101 </table>
102 <tt><font size=+1>&#8722;h</font></tt> <i>host<br>
103 </i>
104 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
106 The network address of the Venti server. The default is taken
107 from the environment variable <tt><font size=+1>venti</font></tt>.<br>
109 </table>
110 <tt><font size=+1>&#8722;m</font></tt>&nbsp;&nbsp;&nbsp;&nbsp;Expand and merge any <i>vac</i> archives that are found while reading
111 the input files. This option is useful for building an archive
112 from a collection of existing archives. Each archive is inserted
113 into the new archive as if it had been unpacked in the directory
114 in which it was found. Multiple archives can be unpacked in
116 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
118 a single directory and the contents will be merged. To be detected,
119 the archives must end in <tt><font size=+1>.vac</font></tt>. Note, an archive is inserted by
120 simply copying the root fingerprint and does not require the archive
121 to be unpacked.<br>
123 </table>
124 <tt><font size=+1>&#8722;q</font></tt>&nbsp;&nbsp;&nbsp;&nbsp;Increase the performance of the <tt><font size=+1>&#8722;d</font></tt> option by detecting unchanged
125 files based on a match of the files name and other meta data,
126 rather than examining the contents of the files.<br>
127 <tt><font size=+1>&#8722;s</font></tt>&nbsp;&nbsp;&nbsp;&nbsp;Print out various statistics on standard error.<br>
128 <tt><font size=+1>&#8722;v</font></tt>&nbsp;&nbsp;&nbsp;&nbsp;Produce more verbose output on standard error, including the
129 name of the files added to the archive and the vac archives that
130 are expanded and merged.<br>
132 </table>
133 <p><font size=+1><b>SOURCE </b></font><br>
135 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
137 <tt><font size=+1>/usr/local/plan9/src/cmd/vac<br>
138 </font></tt>
139 </table>
140 <p><font size=+1><b>SEE ALSO </b></font><br>
142 <table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
144 Plan 9&#8217;s <i>vacfs</i>(4) and <i>venti</i>(8)<br>
146 </table>
148 <td width=20>
149 <tr height=20><td>
150 </table>
151 <!-- TRAILER -->
152 <table border=0 cellpadding=0 cellspacing=0 width=100%>
153 <tr height=15><td width=10><td><td width=10>
154 <tr><td><td>
155 <center>
156 <a href="../../"><img src="../../dist/spaceglenda100.png" alt="Space Glenda" border=1></a>
157 </center>
158 </table>
159 <!-- TRAILER -->
160 </body></html>