vac, unvac – create, extract a vac archive on Venti
creates an archival copy of Plan 9 file trees on Venti. It can be used
to build a simple backup system. One of the unusual properties of Venti is
that duplicate blocks are detected and coalesced. When
is used on a file tree that shares data with an existing archive, the consumption of
storage will be approximately equal to an incremental backup.
This reduction in storage consumption occurs transparently to the user.
As an optimization, the
options, described below, can be used to explicitly create an archive relative to an existing archive.
These options do not change the resulting archive generated by
but simply reduce the number of write operations to Venti.
The output of
is the hexadecimal representation of the SHA1 fingerprint of the root of the archive, in this format:
The options to
Specifies the block size that data will be broken into.
The units for the size can be specified by appending
to indicate kilobytes.
The default is 8k.
The size must be in the range
of 512 bytes to 52k.
Reduce the number of blocks written to Venti by comparing the files to be stored with
the contents of an existing
file tree whose score is stored in
Do not include the file or directory specified by
This option may be repeated multiple times.
The results of
are placed in
or the standard output if no file is given.
Include standard input as one of the input files, storing it in the archive
with the specified
The network address of the Venti server.
The default is taken from the environment variable
If this variable does not exist, then the default is the
which can be configured via
Expand and merge any
archives that are found while reading the input files. This option is
useful for building an archive from a collection of existing archives. Each archive is inserted
into the new archive as if it had been unpacked in the directory in which it was found. Multiple
archives can be unpacked in a single directory and the contents will be merged. To be detected, the
archives must end in
Note, an archive is inserted by simply copying the root fingerprint and does not require
the archive to be unpacked.
Increase the performance of the
option by detecting unchanged files based on a match of the files name and other meta data,
rather than examining the contents of the files.
Print out various statistics on standard error.
Produce more verbose output on standard error, including the name of the files added to the archive
and the vac archives that are expanded and merged.
lists or extracts files stored in the vac archive
which can be either a vac archive string in the format
given above or the name of a file containing one.
arguments are given, only those files or directories
will be extracted.
The options are:
Set the modification time on extracted files
to the time listed in the archive.
Write extracted files to standard output instead of creating a file.
Print a list of the files to standard output rather than extracting them.
If extracting files, print the name of each file and directory
to standard error.
If listing files, print metadata in addition to the names.