NAME
rdarena, wrarena – copy arenas between venti servers |
SYNOPSIS
venti/rdarena [ –qv ] arenapart arenaname
venti/wrarena [ –o fileoffset ] [ –h host ] arenafile [ clumpoffset
] |
DESCRIPTION
Rdarena extracts the named arena from the arena partition arenapart
and writes this arena to standard output. This command is typically
used to back up an arena to external media. The –v option generates
more verbose output on standard error; –q generates only errors
on standard error.
Wrarena writes the blocks contained in the arena arenafile (typically,
the output of rdarena) to a Venti server. It is typically used
to reinitialize a Venti server from backups of the arenas. For
example,
The –o option specifies that the arena starts at byte fileoffset
(default 0) in arenafile . This is useful for reading directly
from the Venti arena partition:
Finally, the optional offset argument specifies that the writing should begin with the clump starting at offset within the arena. Wrarena prints the offset it stopped at (because there were no more data blocks). This could be used to incrementally back up a Venti server to another Venti server:
|
SOURCE
/sys/src/cmd/venti/srv |
SEE ALSO
venti(6), venti(8) |
BUGS
Wrarena can't read a pipe or network connection containing an
arena; it needs a file already containing the entire arena. |