Home | Trees | Index | Help |
|
---|
Package CedarBackup2 :: Package extend :: Module split |
|
Provides an extension to split up large files in staging directories.
When this extension is executed, it will look through the configured
Cedar Backup staging directory for files exceeding a specified size
limit, and split them down into smaller files using the 'split' utility.
Any directory which has already been split (as indicated by the
cback.split
file) will be ignored.
Author: Kenneth J. Pronovici <pronovic@ieee.org>
Classes | |
---|---|
ByteQuantity |
Class representing a byte quantity. |
LocalConfig |
Class representing this extension's configuration document. |
SplitConfig |
Class representing split configuration. |
Function Summary | |
---|---|
Splits large files in a daily staging directory. | |
Splits the source file into chunks of the indicated size. | |
Executes the split backup action. |
Variable Summary | |
---|---|
Logger |
logger = <logging.Logger instance at 0x403fcd2c>
|
list |
SPLIT_COMMAND = ['split']
|
str |
SPLIT_INDICATOR = 'cback.split'
|
list |
VALID_BYTE_UNITS = [0, 1, 2, 4]
|
Function Details |
---|
_splitDailyDir(dailyDir, sizeLimit, splitSize, backupUser, backupGroup)Splits large files in a daily staging directory. Files that match INDICATOR_PATTERNS (i.e."cback.store" ,
"cback.stage" , etc.) are assumed to be indicator
files and are ignored. All other files are split.
|
_splitFile(sourcePath, splitSize, backupUser, backupGroup, removeSource=False)Splits the source file into chunks of the indicated size. The split files will be owned by the indicated backup user and group. IfremoveSource is True , then the
source file will be removed after it is successfully split.
|
executeAction(configPath, options, config)Executes the split backup action.
|
Variable Details |
---|
logger
|
SPLIT_COMMAND
|
SPLIT_INDICATOR
|
VALID_BYTE_UNITS
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Mar 29 20:58:31 2007 | http://epydoc.sf.net |