| Home | Trees | Index | Help |
|
|---|
| Package CedarBackup2 :: Package actions :: Module stage |
|
Author: Kenneth J. Pronovici <pronovic@ieee.org>
| Function Summary | |
|---|---|
Executes the stage backup action. | |
Creates staging directories as required. | |
Gets the daily staging directory. | |
Return a list of LocalPeer objects based on
configuration. | |
Gets the RCP command associated with a remote peer. | |
Return a list of RemotePeer objects based on
configuration. | |
Gets the remote user associated with a remote peer. | |
Writes a stage indicator file into the daily staging directory. | |
| Variable Summary | |
|---|---|
Logger |
logger = <logging.Logger instance at 0x4029d70c>
|
| Function Details |
|---|
executeStage(configPath, options, config)Executes the stage backup action.
|
_createStagingDirs(config, dailyDir, peers)Creates staging directories as required. The main staging directory is the passed in daily directory, something likestaging/2002/05/23. Then, individual peers
get their own directories, i.e.
staging/2002/05/23/host.
|
_getDailyDir(config)Gets the daily staging directory. This is just a directory in the formstaging/YYYY/MM/DD, i.e. staging/2000/10/07,
except it will be an absolute path based on
config.stage.targetDir.
|
_getLocalPeers(config)Return a list ofLocalPeer objects based on
configuration.
|
_getRcpCommand(config, remotePeer)Gets the RCP command associated with a remote peer. Use peer's if possible, otherwise take from options section.
|
_getRemotePeers(config)Return a list ofRemotePeer objects based on
configuration.
|
_getRemoteUser(config, remotePeer)Gets the remote user associated with a remote peer. Use peer's if possible, otherwise take from options section.
|
_writeStageIndicator(config, dailyDir)Writes a stage indicator file into the daily staging directory. Note that there is a stage indicator on each peer (to indicate that a collect directory has been staged) and in the daily staging directory itself (to indicate that the staging directory has been utilized). This just deals with the daily staging directory.
|
| Variable Details |
|---|
logger
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Jan 30 23:16:57 2007 | http://epydoc.sf.net |