NAME
ventiprog, fossilize, storescore, cpsys, fosreset, fossilstart,
foshalt – backup between ventis, replicate fossils, and archive
rootscores |
SYNOPSIS
ventiprog [ –p prepfile ] [ –f infofile ] [ ventihttp_dialstring
] fossilize [ partition ] [ fsname ] storescore cpsys source dest fosreset rootscore [ partition ] [ ventiaddr ] fossilstart [ partition ] [ srvname ] foshalt /n/9fat/rootscor
/n/9fat/wrcmd |
DESCRIPTION
These commands aid in the maintenance and replication of venti/fossil
servers. See fossil(4) and fossilcons(8) for an overview of the
fossil system, fossil/last, flfmt –v, and venti(8) and venti–backup(8)
for an overview of venti and replication with wrarena. Note that these commands make certain assumptions about system configuration and require some manual setup and additional administrative actions for use as a complete backup/replication workflow. As with all system administration scripts, please study their interaction with your local environment before use. Overview Venti replication storescore is a small helper script which stores its input, conventionally produced by fossilize in the form of a vacscore and system fsname, in the 9fat partition appended to the file scores.fsname
After a snapshot has been completed and the rootscore saved, replicating
data from the venti used by that fossil to other ventis will make
that rootscore available for use. The task of progressively replicating
data between ventis is given to the ventiprog script. Prior to
using ventiprog , the user must create the file
bkup.info which begins by setting the venti environment variable
to the dialstring of the venti to which data will be replicated.
Each time ventiprog is run it updates this file with a new final
clump offset parameter. The optional parameters to the ventibackup
script are [–p prepfile] [–f infofile]
[ventihttp_dialstring] which allow you to specify an additional
script to run (prepfile) prior to the main backup operation, a
differently named infofile rather than bkup.info (perhaps beginning
with a different dialstring for a different target venti), and
a different http address to dial than the default of
127.1:8000. Fossil replication cpsys automates replicating between the fossil of source system and that of dest system. IMPORTANT: this script assumes that the partition identification is the same on both systems. It also requires the rexexec(8) service to be listening on both source and destination machines. It issues the fossilize command to source and saves the output to create the parameters for a fosreset command sent to dest.
Because running fossils are halted by the actions of fosreset
and cpsys , the fossilstart script assists in restating the fossil
located on a given partition using standard default parameters.
If srvname is given, it will be used as a stem for the fossil
file and also its fossilcons(8) |
EXAMPLE
These commands are issued from a venti(8) server.
|
SOURCE
/sys/src/ants/scripts/ventiprog |
SEE ALSO
fossil(4), fossilcons(8), venti(8), venti–backup(8) |
BUGS
Managing the namespace seen by remote servers during rcpu commands
can lead to partition identification troubles. |
NOTE
The foundation of the ventiprog script is taken and modified from
/sys/src/cmd/venti/words/backup.example |