Executes the stage backup action.
- Parameters:
configPath (String representing a path on disk.) - Path to configuration file on disk.
options (Options object.) - Program command-line options.
config (Config object.) - Program configuration.
- 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.
|