VAC(1)
π VAC(1) β General Commands Manual, bestie edition
okay bestie, weβre doing vac and unvac today β the General Commands Manual girlies who create and extract vac archives on Venti. no cap, every flag, caveat, and weird little detail is staying. π«Ά
π NAME π
vac, unvac β create, extract a vac archive on Venti. literally that. π
β¨ SYNOPSIS β¨
vac [ -mqsv ] [ -a vacfile ] [ -b blocksize ] [ -d oldvacfile ] [ -e
exclude ] [ -f vacfile ] [ -i name ] [ -h host ] [ -x excludefile ] file
...
unvac [ -Tcdtv ] [ -h host ] vacfile [ file ... ]
πΈ DESCRIPTION πΈ
Vac 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 vac 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 -d and -q 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 vac, but simply reduce the number of write operations to Venti. π
The output of vac is the hexadecimal representation of the SHA1 fingerprint of the root of the archive, in this format:
vac:64daefaecc4df4b5cb48a368b361ef56012a4f46
π¦ the vac options, bestie π¦
The options are:
-avacfile β Specifies thatvacshould create or update a backup archive, inserting the files under an extra two levels of directory hierarchy namedyyyy/mmdd(year, month, day) in the style of the dump file system (see Plan 9'sfs(4)). If vacfile already exists, an additional backup day is added to the existing hierarchy, behaving as though the-dflag was specified giving the most recent backup tree in the archive. Typically, this option is used as part of a nightly backup script. This option cannot be used with-dor-f. π-bblocksize β 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 is8k. The size must be in the range of512 bytesto52k. π-doldvacfile β Reduce the number of blocks written to Venti by comparing the files to be stored with the contents of an existing vac file tree whose score is stored in oldvacfile. π₯-eexclude β Do not include the file or directory specified by exclude. This option may be repeated multiple times. exclude can be a shell pattern as accepted byrc(1), with one extension:...matches any sequence of characters including slashes. π¦-fvacfile β The results ofvacare placed in vacfile, or the standard output if no file is given. π-iname β Include standard input as one of the input files, storing it in the archive with the specified name. β¨-hhost β The network address of the Venti server. The default is taken from the environment variableventi. π-mβ Expand and merge any vac 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 inNote, an archive is inserted by simply copying the root fingerprint and does not require the archive to be unpacked. π-qβ Increase the performance of the-aor-doptions by detecting unchanged files based on a match of the files name and other meta data, rather than examining the contents of the files. π-sβ Print out various statistics on standard error. π-vβ 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. π-xexcfile β Read exclude patterns from the file excfile. Blank lines and lines beginning with#are ignored. All other lines should be of the forminclude patternorexclude pattern. When considering whether to include a directory or file in the vac archive, the earliest matching pattern in the file applies. The patterns are the same syntax accepted by the-eoption. This option may be repeated multiple times. π§
π and now unvac enters the chat π
Unvac lists or extracts files stored in the vac archive vacfile, which can be either a vac archive string in the format given above or the name of a file containing one. If file arguments are given, only those files or directories will be extracted. The options are:
-Tβ Set the modification time on extracted files to the time listed in the archive. β°-cβ Write extracted files to standard output instead of creating a file. π¨οΈ-dβ Reduce the number of blocks read from Venti by comparing the files to be stored with their counterparts in the file system. This option cannot be used with-c. π-tβ Print a list of the files to standard output rather than extracting them. π-vβ If extracting files, print the name of each file and directory to standard error. If listing files, print metadata in addition to the names. π
π¦ SOURCE π¦
/src/cmd/vac
π SEE ALSO π
catch u later, bestie β this was VAC(1), General Commands Manual, source at /src/cmd/vac, and the footer had no date, just VAC(1) energy πβ¨
π¦ 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