From 35ed6913ebd469a0e11458a31eaa78204e9e135c Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 13 Jul 2005 14:06:07 +0000 Subject: add --- man/man8/vbackup.8 | 263 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 man/man8/vbackup.8 (limited to 'man') diff --git a/man/man8/vbackup.8 b/man/man8/vbackup.8 new file mode 100644 index 00000000..72d93e73 --- /dev/null +++ b/man/man8/vbackup.8 @@ -0,0 +1,263 @@ +.TH VBACKUP 8 +.SH NAME +vbackup, vcat, vftp, vmount, vmount0, vnfs \- +back up Unix file systems to Venti +.SH SYNOPSIS +.B vbackup +[ +.B -DVnv +] +[ +.B -s +.I secs +] +[ +.B -w +.I n +] +.I disk +[ +.I score +] +.PP +.B vcat +[ +.B -z +] +.I disk +| +.I score +.B > +.I disk +.PP +.B vftp +.I disk +| +.I score +.PP +.B vmount +[ +.B -v +] +.I addr +.I mtpt +.PP +.B vmount0 +[ +.B -v +] +[ +.B -h +.I handle +] +.I addr +.I mtpt +.PP +.B vnfs +[ +.B -LLMRVr +] +[ +.B -a +.I addr +] +[ +.B -m +.I mntaddr +] +[ +.B -b +.I blocksize +] +[ +.B -c +.I cachesize +] +.I config +.SH DESCRIPTION +These programs back up and restore standard +Unix file system images stored in +.IR venti (8). +Images stored in +.I venti +are named by +.IR scores , +which consist of a file system type followed +by a colon and forty hexadecimal digits, as in: +.IP +.EX +ffs:0123456789abcdef0123456789abcdef01234567 +.EE +.PP +(The hexadecimal data is the SHA1 hash of the Venti +root block representing the file system image.) +.PP +These programs expect the environment variable +.B $venti +to be set to the network address of the Venti server to use +(for example, +.B yourhost +or +.BR tcp!yourhost!venti ). +.PP +.I Vbackup +copies the file system stored on +.I disk +to the Venti server and prints the +score for the newly-stored image. +The argument +.I disk +should be a disk or disk partition device +that would be appropriate to pass to +.IR mount (8). +.PP +The optional argument +.I score +is the score of a previous backup of the disk image. +If +.I score +is given, +.I vbackup +will not write to Venti any blocks that have not changed +since the previous backup. +This is only a speed optimization: since the blocks are already +stored on Venti they need not be sent to the Venti server again. +.PP +The options to +.I vbackup +are: +.TP +.B -D +.TP +.B -V +.TP +.B -n +.TP +.B -v +.TP +.B -w \fIn +.TP +.B -s \fIsecs +.PP +.I Vcat +writes the named disk image to standard output. +Unused file system blocks are printed zeroed regardless +of their actual content. +.PP +If the +.B -z +flag is given, +.I vcat +will attempt to seek over unused blocks instead of writing to them. +The +.B -z +flag should only be used when standard output is seekable +.RI ( i.e. , +when it has been redirected to a file or disk). +.PP +.I Vftp +presents the +file system image named by +.I disk +or +.I score +in a shell-like +interactive session. +Type +.B help +at the +.B vftp> +prompt for details. +.PP +.I Vmount +mounts the NFS service at the network connection +.I address +onto +.IR mountpoint . +On most operating systems, +.I vmount +must be run by the user +.BR root . +.PP +.I Vmount0 +is a simple C program that +.I vmount +uses if +.IR mount (8) +does not suffice. +.PP +.I Vnfs +serves, using the +NFS version 3 protocol, +one or more disk images in a synthetic tree defined +by the configuration file +.IR config . +.I Vnfs +announces NFS service at +.IR addr +(default +.BR udp!*!nfs ) +and NFS mount service at +.IR mntaddr +(default +.BR udp!*!\fI999 ), +registering both with the port mapper. +If no port mapper is found running (on port 111), +.I vnfs +starts its own port mapper. +The options are: +.TP +.B -r +Reply to all NFS requests with RPC rejections. +.TP +.B -M +Do not announce an NFS mount service. +.TP +.B -P +Do not register service with the port mapper. +.TP +.B -a + + +.SH EXAMPLES +.PP +Back up the file system stored on +.BR /dev/da0s1a : +.IP +.EX +% vbackup /dev/da0s1a +ffs:0123456789abcdef0123456789abcdef01234567 +% +.EE +.PP +Serve that backup and a few others in a tree reminiscent +of Plan 9's dump file system, but hide each day's contents of +.B /tmp : +.IP +.EX +% cat config +mount /2005/0510 ffs:0123456789abcdef\fI...\fP +mount /2005/0510/home ffs:0123456789abcdef\fI...\fP +mount /2005/0510 ffs:0123456789abcdef\fI...\fP +mount /2005/0510/home ffs:0123456789abcdef\fI...\fP +hide /*/*/tmp +% vnfs -m -b 16k -c 1k config +% +.EE +.PP +Mount the backups on a client machine using +.IR vmount : +.IP +.EX +# vmount udp!yourserver!nfs /dump +# ls /dump +2005 +# +.EE +.PP +Mount the backups using the standard NFS mount program: +.IP +.EX +# mount -t nfs -o soft,intr,ro,nfsv3,rsize=8192,timeo=100 \ + -o nfsvers=3,nolock,noatime,nodev,nosuid \ +.EE -- cgit v1.2.3