Home | Trees | Indices | Help |
|
---|
|
Spans staged data among multiple discs
This is the Cedar Backup span tool. It is intended for use by people who stage more data than can fit on a single disc. It allows a user to split staged data among more than one disc. It can't be an extension because it requires user input when switching media.
Most configuration is taken from the Cedar Backup configuration file, specifically the store section. A few pieces of configuration are taken directly from the user.
Author: Kenneth J. Pronovici <pronovic@ieee.org>
|
|||
SpanOptions Tool-specific command-line options. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
logger = logging.getLogger("CedarBackup2.log.tools.span")
|
|||
__package__ =
|
|
Implements the command-line interface for the Essentially, this is the "main routine" for the cback-span script. It does all of the argument processing for the script, and then also implements the tool functionality. This function looks pretty similiar to
A different error code is returned for each type of failure:
Note: This script uses print rather than logging to the INFO level, because it is interactive. Underlying Cedar Backup functionality uses the logging mechanism exclusively. |
Prints usage information for the cback script.
Note:
The |
Prints version information for the cback script.
Note:
The |
Implements the guts of the cback-span tool.
|
Returns a list of all daily staging directories that have not yet been stored. The store indicator file Returned is a tuple containing two items: a list of daily staging directories, and a BackupFileList containing all files among those staging directories.
|
Writes a store indicator file into daily directories.
|
Gets a writer and media capacity from store configuration. Returned is a writer and a media capacity in bytes.
|
Writes a span item to disc.
|
Initialize an ISO image for a span item.
|
Writes a ISO image for a span item.
|
Run a consistency check on an ISO image for a span item.
|
Runs a consistency check against media in the backup device. The function mounts the device at a temporary mount point in the working directory, and then compares the passed-in file list's digest map with the one generated from the disc. The two lists should be identical. If no exceptions are thrown, there were no problems with the consistency check.
Warning: The implementation of this function is very UNIX-specific. |
Get a yes/no answer from the user. The default will be placed at the end of the prompt. A "Y" or "y" is considered yes, anything else no. A blank (empty) response results in the default.
|
Get a particular choice from the user. The default will be placed at the end of the prompt. The function loops until getting a valid choice. A blank (empty) response results in the default.
|
Get a floating point number from the user. The default will be placed at the end of the prompt. The function loops until getting a valid floating point number. A blank (empty) response results in the default.
|
Get a return key from the user.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 12 09:25:39 2011 | http://epydoc.sourceforge.net |