executeStage(configPath,
options,
config)
Executes the stage backup action.
-
- Parameters:
configPath -
Path to configuration file on disk.
(type=String representing a path on disk.)
options -
Program command-line options.
(type=Options object.)
config -
Program configuration.
(type=Config object.)
- Raises:
ValueError -
Under many generic error conditions
IOError -
If there are problems reading or writing files.
Notes:
- The daily directory is derived once and then we stick with it, just in
case a backup happens to span midnite.
- As portions of the stage action is complete, we will write various
indicator files so that it's obvious what actions have been completed.
Each peer gets a stage indicator in its collect directory, and then the
master gets a stage indicator in its daily staging directory. The store
process uses the master's stage indicator to decide whether a directory
is ready to be stored. Currently, nothing uses the indicator at each
peer, and it exists for reference only.
|