1 004aa293 2005-07-13 devnull .TH VBACKUP 8
3 004aa293 2005-07-13 devnull vbackup, vcat, vftp, vmount, vmount0, vnfs \-
4 004aa293 2005-07-13 devnull back up Unix file systems to Venti
5 004aa293 2005-07-13 devnull .SH SYNOPSIS
6 004aa293 2005-07-13 devnull .B vbackup
38 004aa293 2005-07-13 devnull .B vmount
45 004aa293 2005-07-13 devnull .B vmount0
51 004aa293 2005-07-13 devnull .I handle
58 004aa293 2005-07-13 devnull .B -LLMRVr
66 004aa293 2005-07-13 devnull .I mntaddr
70 004aa293 2005-07-13 devnull .I blocksize
74 004aa293 2005-07-13 devnull .I cachesize
76 004aa293 2005-07-13 devnull .I config
77 004aa293 2005-07-13 devnull .SH DESCRIPTION
78 004aa293 2005-07-13 devnull These programs back up and restore standard
79 004aa293 2005-07-13 devnull Unix file system images stored in
80 004aa293 2005-07-13 devnull .IR venti (8).
81 004aa293 2005-07-13 devnull Images stored in
83 004aa293 2005-07-13 devnull are named by
84 004aa293 2005-07-13 devnull .IR scores ,
85 004aa293 2005-07-13 devnull which consist of a file system type followed
86 004aa293 2005-07-13 devnull by a colon and forty hexadecimal digits, as in:
89 004aa293 2005-07-13 devnull ffs:0123456789abcdef0123456789abcdef01234567
92 004aa293 2005-07-13 devnull (The hexadecimal data is the SHA1 hash of the Venti
93 004aa293 2005-07-13 devnull root block representing the file system image.)
95 004aa293 2005-07-13 devnull These programs expect the environment variable
96 004aa293 2005-07-13 devnull .B $venti
97 004aa293 2005-07-13 devnull to be set to the network address of the Venti server to use
98 004aa293 2005-07-13 devnull (for example,
99 004aa293 2005-07-13 devnull .B yourhost
101 004aa293 2005-07-13 devnull .BR tcp!yourhost!venti ).
103 004aa293 2005-07-13 devnull .I Vbackup
104 004aa293 2005-07-13 devnull copies the file system stored on
106 004aa293 2005-07-13 devnull to the Venti server and prints the
107 004aa293 2005-07-13 devnull score for the newly-stored image.
108 004aa293 2005-07-13 devnull The argument
110 004aa293 2005-07-13 devnull should be a disk or disk partition device
111 004aa293 2005-07-13 devnull that would be appropriate to pass to
112 004aa293 2005-07-13 devnull .IR mount (8).
114 004aa293 2005-07-13 devnull The optional argument
115 004aa293 2005-07-13 devnull .I score
116 004aa293 2005-07-13 devnull is the score of a previous backup of the disk image.
118 004aa293 2005-07-13 devnull .I score
119 004aa293 2005-07-13 devnull is given,
120 004aa293 2005-07-13 devnull .I vbackup
121 004aa293 2005-07-13 devnull will not write to Venti any blocks that have not changed
122 004aa293 2005-07-13 devnull since the previous backup.
123 004aa293 2005-07-13 devnull This is only a speed optimization: since the blocks are already
124 004aa293 2005-07-13 devnull stored on Venti they need not be sent to the Venti server again.
126 004aa293 2005-07-13 devnull The options to
127 004aa293 2005-07-13 devnull .I vbackup
138 004aa293 2005-07-13 devnull .B -w \fIn
140 004aa293 2005-07-13 devnull .B -s \fIsecs
143 004aa293 2005-07-13 devnull writes the named disk image to standard output.
144 004aa293 2005-07-13 devnull Unused file system blocks are printed zeroed regardless
145 004aa293 2005-07-13 devnull of their actual content.
149 004aa293 2005-07-13 devnull flag is given,
151 004aa293 2005-07-13 devnull will attempt to seek over unused blocks instead of writing to them.
154 004aa293 2005-07-13 devnull flag should only be used when standard output is seekable
155 004aa293 2005-07-13 devnull .RI ( i.e. ,
156 004aa293 2005-07-13 devnull when it has been redirected to a file or disk).
159 004aa293 2005-07-13 devnull presents the
160 004aa293 2005-07-13 devnull file system image named by
163 004aa293 2005-07-13 devnull .I score
164 004aa293 2005-07-13 devnull in a shell-like
165 004aa293 2005-07-13 devnull interactive session.
169 004aa293 2005-07-13 devnull .B vftp>
170 004aa293 2005-07-13 devnull prompt for details.
172 004aa293 2005-07-13 devnull .I Vmount
173 004aa293 2005-07-13 devnull mounts the NFS service at the network connection
174 004aa293 2005-07-13 devnull .I address
176 004aa293 2005-07-13 devnull .IR mountpoint .
177 004aa293 2005-07-13 devnull On most operating systems,
178 004aa293 2005-07-13 devnull .I vmount
179 004aa293 2005-07-13 devnull must be run by the user
180 004aa293 2005-07-13 devnull .BR root .
182 004aa293 2005-07-13 devnull .I Vmount0
183 004aa293 2005-07-13 devnull is a simple C program that
184 004aa293 2005-07-13 devnull .I vmount
186 004aa293 2005-07-13 devnull .IR mount (8)
187 004aa293 2005-07-13 devnull does not suffice.
190 004aa293 2005-07-13 devnull serves, using the
191 004aa293 2005-07-13 devnull NFS version 3 protocol,
192 004aa293 2005-07-13 devnull one or more disk images in a synthetic tree defined
193 004aa293 2005-07-13 devnull by the configuration file
194 004aa293 2005-07-13 devnull .IR config .
196 004aa293 2005-07-13 devnull announces NFS service at
197 004aa293 2005-07-13 devnull .IR addr
198 004aa293 2005-07-13 devnull (default
199 004aa293 2005-07-13 devnull .BR udp!*!nfs )
200 004aa293 2005-07-13 devnull and NFS mount service at
201 004aa293 2005-07-13 devnull .IR mntaddr
202 004aa293 2005-07-13 devnull (default
203 004aa293 2005-07-13 devnull .BR udp!*!\fI999 ),
204 004aa293 2005-07-13 devnull registering both with the port mapper.
205 004aa293 2005-07-13 devnull If no port mapper is found running (on port 111),
207 004aa293 2005-07-13 devnull starts its own port mapper.
208 004aa293 2005-07-13 devnull The options are:
211 004aa293 2005-07-13 devnull Reply to all NFS requests with RPC rejections.
214 004aa293 2005-07-13 devnull Do not announce an NFS mount service.
217 004aa293 2005-07-13 devnull Do not register service with the port mapper.
222 004aa293 2005-07-13 devnull .SH EXAMPLES
224 004aa293 2005-07-13 devnull Back up the file system stored on
225 004aa293 2005-07-13 devnull .BR /dev/da0s1a :
228 004aa293 2005-07-13 devnull % vbackup /dev/da0s1a
229 004aa293 2005-07-13 devnull ffs:0123456789abcdef0123456789abcdef01234567
233 004aa293 2005-07-13 devnull Serve that backup and a few others in a tree reminiscent
234 004aa293 2005-07-13 devnull of Plan 9's dump file system, but hide each day's contents of
235 004aa293 2005-07-13 devnull .B /tmp :
238 004aa293 2005-07-13 devnull % cat config
239 004aa293 2005-07-13 devnull mount /2005/0510 ffs:0123456789abcdef\fI...\fP
240 004aa293 2005-07-13 devnull mount /2005/0510/home ffs:0123456789abcdef\fI...\fP
241 004aa293 2005-07-13 devnull mount /2005/0510 ffs:0123456789abcdef\fI...\fP
242 004aa293 2005-07-13 devnull mount /2005/0510/home ffs:0123456789abcdef\fI...\fP
243 004aa293 2005-07-13 devnull hide /*/*/tmp
244 004aa293 2005-07-13 devnull % vnfs -m -b 16k -c 1k config
248 004aa293 2005-07-13 devnull Mount the backups on a client machine using
249 004aa293 2005-07-13 devnull .IR vmount :
252 004aa293 2005-07-13 devnull # vmount udp!yourserver!nfs /dump
253 004aa293 2005-07-13 devnull # ls /dump
258 004aa293 2005-07-13 devnull Mount the backups using the standard NFS mount program:
261 004aa293 2005-07-13 devnull # mount -t nfs -o soft,intr,ro,nfsv3,rsize=8192,timeo=100 \
262 004aa293 2005-07-13 devnull -o nfsvers=3,nolock,noatime,nodev,nosuid \