Home | Trees | Index | Help |
|
---|
Package CedarBackup2 :: Package actions :: Module collect |
|
Author: Kenneth J. Pronovici <pronovic@ieee.org>
Function Summary | |
---|---|
Executes the collect backup action. | |
Collects a configured collect directory. | |
Collects a configured collect file. | |
Execute the backup process for the indicated backup list. | |
Gets the archive mode that should be used for a collect directory or file. | |
Gets the collect mode that should be used for a collect directory or file. | |
Gets the digest path associated with a collect directory or file. | |
Gets exclusions (file and patterns) associated with a collect directory. | |
Gets the ignore file that should be used for a collect directory or file. | |
Gets the tarfile path (including correct extension) associated with a collect directory. | |
Loads the indicated digest path from disk into a dictionary. | |
Writes the digest dictionary to the indicated digest path on disk. |
Variable Summary | |
---|---|
Logger |
logger = <logging.Logger instance at 0x402c494c>
|
Function Details |
---|
executeCollect(configPath, options, config)Executes the collect backup action.
|
_collectDirectory(config, absolutePath, tarfilePath, collectMode, archiveMode, ignoreFile, resetDigest, digestPath, excludePaths, excludePatterns)Collects a configured collect directory. The indicated collect directory is collected into the indicated tarfile. For directories that are collected incrementally, we'll use the indicated digest path and pay attention to the reset digest flag (basically, the reset digest flag ignores any existing digest, but a new digest is always rewritten). The caller must decide what the collect and archive modes are, since they can be on both the collect configuration and the collect directory itself.
|
_collectFile(config, absolutePath, tarfilePath, collectMode, archiveMode, resetDigest, digestPath)Collects a configured collect file. The indicated collect file is collected into the indicated tarfile. For files that are collected incrementally, we'll use the indicated digest path and pay attention to the reset digest flag (basically, the reset digest flag ignores any existing digest, but a new digest is always rewritten). The caller must decide what the collect and archive modes are, since they can be on both the collect configuration and the collect file itself.
|
_executeBackup(config, backupList, absolutePath, tarfilePath, collectMode, archiveMode, resetDigest, digestPath)Execute the backup process for the indicated backup list. This function exists mainly to consolidate functionality between the
|
_getArchiveMode(config, item)Gets the archive mode that should be used for a collect directory or file. If possible, use the one on the file or directory, otherwise take from collect section.
|
_getCollectMode(config, item)Gets the collect mode that should be used for a collect directory or file. If possible, use the one on the file or directory, otherwise take from collect section.
|
_getDigestPath(config, item)Gets the digest path associated with a collect directory or file.
|
_getExclusions(config, collectDir)Gets exclusions (file and patterns) associated with a collect directory. The returned files value is a list of absolute paths to be excluded from the backup for a given directory. It is derived from the collect configuration absolute exclude paths and the collect directory's absolute and relative exclude paths. The returned patterns value is a list of patterns to be excluded from the backup for a given directory. It is derived from the list of patterns from the collect configuration and from the collect directory itself.
|
_getIgnoreFile(config, item)Gets the ignore file that should be used for a collect directory or file. If possible, use the one on the file or directory, otherwise take from collect section.
|
_getTarfilePath(config, item, archiveMode)Gets the tarfile path (including correct extension) associated with a collect directory.
|
_loadDigest(digestPath)Loads the indicated digest path from disk into a dictionary. If we can't load the digest successfully (either because it doesn't exist or for some other reason), then an empty dictionary will be returned - but the condition will be logged.
|
_writeDigest(config, digest, digestPath)Writes the digest dictionary to the indicated digest path on disk. If we can't write the digest successfully for any reason, we'll log the condition but won't throw an exception.
|
Variable Details |
---|
logger
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Mar 29 20:58:26 2007 | http://epydoc.sf.net |