Home | Trees | Index | Help |
|
---|
Package CedarBackup2 :: Package tools :: Module span |
|
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>
Classes | |
---|---|
SpanOptions |
Tool-specific command-line options. |
Function Summary | |
---|---|
Implements the command-line interface for the cback-span
script. | |
Runs a consistency check against media in the backup device. | |
Implements the guts of the cback-span tool. | |
Returns a list of all daily staging directories that have not yet been stored. | |
Get a particular choice from the user. | |
Get a floating point number from the user. | |
Get a return key from the user. | |
Gets a writer and media capacity from store configuration. | |
Get a yes/no answer from the user. | |
Prints usage information for the cback script. | |
Prints version information for the cback script. | |
Writes a span item to disc. |
Variable Summary | |
---|---|
Logger |
logger = <logging.Logger instance at 0x403ed22c>
|
Function Details |
---|
cli()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
|
_consistencyCheck(config, fileList)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.
|
_executeAction(options, config)Implements the guts of the cback-span tool.
|
_findDailyDirs(stagingDir)Returns a list of all daily staging directories that have not yet been stored. The store indicator file
|
_getChoiceAnswer(prompt, default, validChoices)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.
|
_getFloat(prompt, 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.
|
_getReturn(prompt)Get a return key from the user.
|
_getWriter(config)Gets a writer and media capacity from store configuration. Returned is a writer and a media capacity in bytes.
|
_getYesNoAnswer(prompt, default)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.
|
_usage(fd=<epydoc.imports._DevNull instance at 0x401ff88c>)Prints usage information for the cback script.
|
_version(fd=<epydoc.imports._DevNull instance at 0x401ff88c>)Prints version information for the cback script.
|
_writeDisc(config, writer, spanItem)Writes a span item to disc.
|
Variable Details |
---|
logger
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Mar 29 20:58:29 2007 | http://epydoc.sf.net |