Home | Trees | Indices | Help |
|
---|
|
object --+ | LocalPeer
Backup peer representing a local peer in a backup pool.
This is a class representing a local (non-network) peer in a backup pool. Local peers are backed up by simple filesystem copy operations. A local peer has associated with it a name (typically, but not necessarily, a hostname) and a collect directory.
The public methods other than the constructor are part of a
"backup peer" interface shared with the RemotePeer
class.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|
|||
name Name of the peer. |
|||
collectDir Path to the peer's collect directory (an absolute local path). |
|||
ignoreFailureMode Ignore failure mode for peer. |
|||
Inherited from |
|
Initializes a local backup peer. Note that the collect directory must be an absolute path, but does not have to exist when the object is instantiated. We do a lazy validation on this value since we could (potentially) be creating peer objects before an ongoing backup completed.
|
Stages data from the peer into the indicated local target directory. The collect and target directories must both already exist before this method is called. If passed in, ownership and permissions will be applied to the files that are copied.
Notes:
|
Checks the collect indicator in the peer's staging directory. When a peer has completed collecting its backup files, it will write
an empty indicator file into its collect directory. This method checks
to see whether that indicator has been written. We're "stupid"
here - if the collect directory doesn't exist, you'll naturally get back
If you need to, you can override the name of the collect indicator file by passing in a different name.
|
Writes the stage indicator in the peer's staging directory. When the master has completed collecting its backup files, it will write an empty indicator file into the peer's collect directory. The presence of this file implies that the staging process is complete. If you need to, you can override the name of the stage indicator file by passing in a different name.
Note: If you have user/group as strings, call the util.getUidGid function to get the associated uid/gid as an ownership tuple. |
Copies files from the source directory to the target directory. This function is not recursive. Only the files in the directory will be copied. Ownership and permissions will be left at their default values if new values are not specified. The source and target directories are allowed to be soft links to a directory, but besides that soft links are ignored.
Note: If you have user/group as strings, call the util.getUidGid function to get the associated uid/gid as an ownership tuple. |
Copies a source file to a target file. If the source file is
Notes:
|
Property target used to set the peer name. The value must be a
non-empty string and cannot be
|
Property target used to set the collect directory. The value must be
an absolute path and cannot be
|
Property target used to set the ignoreFailure mode. If not
|
|
nameName of the peer. |
collectDirPath to the peer's collect directory (an absolute local path).
|
ignoreFailureModeIgnore failure mode for peer.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat May 22 12:03:12 2010 | http://epydoc.sourceforge.net |