VBACKUP(8)
π VBACKUP(8) β back up Unix file systems to Venti π¦
okay bestie, this is the VBACKUP(8) page from the System Manager's Manual, and it covers vbackup, vcat, vftp, vmount, and vnfs. It's giving backup-girlie main character energy, no cap. π
π NAME π
vbackup, vcat, vftp, vmount, vnfs β back up Unix file systems to Venti. β¨
πΈ SYNOPSIS πΈ
vbackup [ -DVinv ] [ -M mtpt ] [ -m host ] [ -s secs ] [ -w n ] disk [ score ]
vcat [ -z ] disk | score > disk
vftp score | disk
vmount [ -v ] addr mtpt
vnfs [ -ELLRVir ] [ -a addr ] [ -b blocksize ] [ -c cachesize ] config
π DESCRIPTION π
These programs back up and restore standard Unix file system images stored in venti(8). Images stored in Venti are named by scores, which consist of a file system type followed by a colon and forty hexadecimal digits, like this little icon:
ffs:0123456789abcdef0123456789abcdef01234567
The hexadecimal data is the SHA1 hash of the Venti root block representing the file system image. π
These programs expect the environment variable $venti to be set to the network address of the Venti server to use (for example, yourhost or tcp!yourhost!venti). Set it, bestie, or nothing is gonna slay. π«
π¦ vbackup π¦
vbackup copies the file system stored on disk to the Venti server and prints the score for the newly-stored image. The argument disk should be a disk or disk partition device that would be appropriate to pass to mount(8). π½
The optional argument score is the score of a previous backup of the disk image. If score is given, 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. β‘
The options to vbackup are:
-Dβ turn on debugging output. π-Vβ trace interactions with the Venti server. π-m hostβ sets the host name used to construct the path in themountcommand. The default host is the name returned bysysname(seegetuser(3)). π-M mtptβ sets the mount-point name used to construct the path in themountcommand. The defaultmtptis the place wherediskis currently mounted. π-nβ no-op mode: do not write any blocks to the server. π-iβ read scores incrementally from the previous backup as needed, rather than prefetching them. πΎ-vβ print verbose output. π£οΈ-w nβ write parallelism: keepnwrites to the server in progress at a time. β‘-s secsβ status interval: everysecsseconds, print a line tracking progress of the backup. β±οΈ
The page's formatting goes full goblin mode right here and also prints: βSet backup mount point: this name is also used in the printed mount command. The default is the name returned bysysname(seegetuser(3)).β That's literally all it says β I'm not guessing which flag it was attached to. π«
When vbackup finishes, it prints a single line of the form
mount /host/yyyy/mmdd/mtpt score yyyy/mmdd/hhmm
This line is a valid configuration line for vnfs (q.v.). Mntpath is the path on which disk is currently mounted. π«Ά
π vcat π
vcat writes the named disk image to standard output. Unused file system blocks are printed zeroed regardless of their actual content. π«§
By default, vcat will assume that its standard output is seekable (i.e., it has been redirected to a file or disk) and seek over unused blocks instead of writing to them. The -z option causes vcat to zero unused blocks instead.
-zβ zero unused blocks instead of seeking over them. β¨
πΈ vftp πΈ
vftp presents an ftp(1)-like interface to a physical or backed-up disk image. It is used mainly for debugging. Type help at the vftp> prompt for a list of commands. π οΈ
π§ vmount π§
vmount mounts the NFS service at the network connection address onto mountpoint. On most operating systems, vmount must be run by the user root. Because address is passed to the host OS kernel rather than interpreted by dial(3), it must be only an IP address, not a full dial address. π§
-vβ it's in the synopsis, but this page gives no description for it. That's the whole tea. π΅
π vnfs π
vnfs serves, using the NFS version 3 protocol, one or more disk images in a synthetic tree defined by the configuration file config. vnfs serves both NFS mount protocol and NFS protocol RPCs at addr (default udp!*!nfs). π
The options are:
-Eβ disableencryptedhandles. By default handles are encrypted with a random key to avoid leaking information about the backed-up file systems. If encryption is disabled, the NFS handles exposed to the client may leak information about the root scores of the disks as well as inode numbers. π-Lβ local service only: serve only requests from the loopback interface (127.0.0.1). π-LLβ local service only, with paranoia: serve only requests from loopback, and only from the first source port that sends a request. This option is intended to be used to make sure that once the local host has mounted the service, no other local users can access it. π΅οΈ-Rβ print all NFS and NFS mount RPCs to standard error. π-Vβ print all Venti transactions to standard error. π-a addrβ serve requests onaddr(see above). π‘-b blocksizeβ set block size used by the in-memory Venti block cache. Must be as large as the maximum block size in any file system mentioned in the configuration. π§±-c cachesizeβ set the number of blocks stored by the in-memory Venti cache. ποΈ-iβ run in βinsecureβ mode, allowing remote root users to use uid and gid0and read any file. (Normally, remote root is mapped to uid and gid-1and has no special permissions.) π-rβ respond to all requests with a Sun RPC rejection. This is useful during debugging. π
π config file commands π
config is a text file describing the backup hierarchy for vnfs to serve. Lines beginning with a sharp (#) are ignored. The rest of the file is a sequence of commands, one per line. The commands are:
mount mtpt score timeβ add the file system with the givenscoreto the tree at the mount pointmtpt. The path to the mount point will be created if necessary. If/dev/nullis given as thescore, an empty file system is mounted atmtpt, excludingmtpt's contents from view.timeis the modification time to return for the directorymtpt, either a decimal number of seconds since the epoch or a string of the formyyyy/mmdd/hhmmgiving the year, month, day, hour, and minute. (vnfsdoes not use the modification time of the root in order to avoid accessing every mounted file system on common actions likels -l /dump/sys/2005.) πallow ip[/mask]β one of the two access-rule commands. π’deny ip[/mask]β the other access-rule command. π΄
These two commands define access permissions based on IP address. The optional mask can be a decimal number (24) or an equivalent IP mask (255.255.255.0). Each request is filtered through the rules listed in the configuration file. The first rule that matches is used. If any allow or deny rules are given, the default action is to reject the request. In the absence of any rules, the default action is to accept all requests. π¦
Reading the special file /dump/+refreshconfig causes vnfs to reload config. The read returns either the string ok or an error message. π
π EXAMPLES π
Running on the server bob, back up the file system stored on /dev/da0s1a, which is mounted on /home:
% vbackup /dev/da0s1a
mount /bob/2005/0510/home ffs:0123456789abcdef... 2005/0510/0831
%
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 /tmp:
% cat config
mount /bob/2005/0510 ffs:0123456789abcdef... 2005/0510/0829
mount /bob/2005/0510/home ffs:0123456789abcdef... 2005/0510/0831
mount /bob/2005/0510/tmp /dev/null 1
mount /bob/2005/0511 ffs:0123456789abcdef... 2005/0511/0827
mount /bob/2005/0511/home ffs:0123456789abcdef... 2005/0511/0828
mount /bob/2005/0511/tmp /dev/null 1
% vnfs -b 16k -c 1k config
%
Mount the backups on a client machine using vmount:
# vmount yourserver /dump
# ls /dump/bob/2005
0510
0511
#
(Users of fancy shells may need to quote the address argument.) π‘
okay that's the whole page, bestie π β footer check: it just says VBACKUP(8), with no separate source/version or date line, so consider this your cute sign-off from the System Manager's Manual page. π«Άπ
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms