RdiffBackupWrapper.RdiffBackupWrapper Class Reference

Inherits IStorageWrapper.IStorageWrapper.

List of all members.

Public Member Functions

def __init__
def backupSet
def recoverSnapshotAtTime
def recoverPathAtTime
def deleteAtTime
def getDirList
def getAllSnapshots

Private Attributes

 _IStorageWrapper__snapshotsDirectory
 __cmdCheckBackupDirectory
 __cmdSetupBackupDirectory
 __cmdBackupNewPath
 __cmdRecoverAtTime
 __cmdRecoverPathAtTime
 __cmdListAtTime
 __cmdListSnapshots

Static Private Attributes

string __rdiffCommand = "rdiff-backup"
string __cmdCheckBackupDirectory = " --check-destination-dir \"$snapshotPath$\""
string __cmdSetupBackupDirectory = " --create-full-path --exclude-regexp '.' / \"$snapshotPath$\""
string __cmdBackupNewPath = " $pathsIncluded$ --exclude-regexp '.' / \"$snapshotPath$\""
string __cmdRecoverAtTime = " -r '$time$' --force \"$snapshotPath$\" \"$targetPath$\""
string __cmdRecoverPathAtTime = " -r '$time$' --force --include \"$sourcePath$\" --exclude-regexp '.' \"$snapshotPath$\" \"$targetPath$\""
string __cmdListSnapshots = " -l \"$snapshotPath$\""
string __cmdListAtTime = " --list-at-time '$time$' \"$snapshotPath$$dirPath$\""


Detailed Description

Wraps rdiff-backup application.

Author:
Salvador de la Puente González neo.salvador@gmail.com

Member Function Documentation

def RdiffBackupWrapper.RdiffBackupWrapper.__init__ (   self  ) 

rdiff-backup command prototype to list content from a directory at given time TODO: falta este, va a dar problemas porque es una opción inexistente en rdiff-backup Default constructor setups object properly

Reimplemented from IStorageWrapper.IStorageWrapper.

def RdiffBackupWrapper.RdiffBackupWrapper.backupSet (   self,
  setFileSet 
)

Backups a set of files

Parameters:
setFileSet a set with absolute paths to files to be backupped

Reimplemented from IStorageWrapper.IStorageWrapper.

def RdiffBackupWrapper.RdiffBackupWrapper.recoverSnapshotAtTime (   self,
  strTime,
  strTargetPath 
)

Recovers a snapshot at given time to a given target directory

Parameters:
strTime time of the backup to be recovered
strTargetPath target directory to copy recovered snapshot

Reimplemented from IStorageWrapper.IStorageWrapper.

def RdiffBackupWrapper.RdiffBackupWrapper.recoverPathAtTime (   self,
  strSourcePath,
  strTime,
  strTargetPath 
)

Recovers a given path at given time to a given target directory

Parameters:
strSourcePath path to recover
strTime time of the snapshot to be recovered
strTargetPath target directory to copy recovered snapshot

Reimplemented from IStorageWrapper.IStorageWrapper.

def RdiffBackupWrapper.RdiffBackupWrapper.deleteAtTime (   self,
  strTime 
)

Deletes an specified snapshot at given time

Parameters:
strTime time of the snapshot to be deleted

Reimplemented from IStorageWrapper.IStorageWrapper.

def RdiffBackupWrapper.RdiffBackupWrapper.getDirList (   self,
  strDir,
  strTime,
  boolRecursive 
)

Gets a list of the content of the given directory at given time

Parameters:
strDir directory path to list it content
strTime specify when list operation is performed
boolRecursive if true, then it returns the content of folder and its subfolders. Otherwise, just returns content of folder
Returns:
an array with the content of the folder and some important metadata

Reimplemented from IStorageWrapper.IStorageWrapper.

def RdiffBackupWrapper.RdiffBackupWrapper.getAllSnapshots (   self  ) 

Gets a list of all snapshot performed by now

Returns:
an array with all snapshots available

Reimplemented from IStorageWrapper.IStorageWrapper.


Member Data Documentation

string RdiffBackupWrapper.RdiffBackupWrapper.__rdiffCommand = "rdiff-backup" [static, private]

rdiff-backup command

string RdiffBackupWrapper.RdiffBackupWrapper.__cmdCheckBackupDirectory = " --check-destination-dir \"$snapshotPath$\"" [static, private]

rdiff-backup command prototype to check backup directory

string RdiffBackupWrapper.RdiffBackupWrapper.__cmdSetupBackupDirectory = " --create-full-path --exclude-regexp '.' / \"$snapshotPath$\"" [static, private]

rdiff-backup command prototype to setup backup directory

string RdiffBackupWrapper.RdiffBackupWrapper.__cmdBackupNewPath = " $pathsIncluded$ --exclude-regexp '.' / \"$snapshotPath$\"" [static, private]

rdiff-backup command prototype to backup a new file or directory

string RdiffBackupWrapper.RdiffBackupWrapper.__cmdRecoverAtTime = " -r '$time$' --force \"$snapshotPath$\" \"$targetPath$\"" [static, private]

rdiff-backup command prototype to recover a snapshot

string RdiffBackupWrapper.RdiffBackupWrapper.__cmdRecoverPathAtTime = " -r '$time$' --force --include \"$sourcePath$\" --exclude-regexp '.' \"$snapshotPath$\" \"$targetPath$\"" [static, private]

rdiff-backup command prototype to recover a given path at given time to given target path

string RdiffBackupWrapper.RdiffBackupWrapper.__cmdListSnapshots = " -l \"$snapshotPath$\"" [static, private]

rdiff-backup command prototype to list all snapshots performed

string RdiffBackupWrapper.RdiffBackupWrapper.__cmdListAtTime = " --list-at-time '$time$' \"$snapshotPath$$dirPath$\"" [static, private]

rdiff-backup command prototype to list content from a directory at given time

RdiffBackupWrapper.RdiffBackupWrapper._IStorageWrapper__snapshotsDirectory [private]

RdiffBackupWrapper.RdiffBackupWrapper.__cmdCheckBackupDirectory [private]

RdiffBackupWrapper.RdiffBackupWrapper.__cmdSetupBackupDirectory [private]

RdiffBackupWrapper.RdiffBackupWrapper.__cmdBackupNewPath [private]

RdiffBackupWrapper.RdiffBackupWrapper.__cmdRecoverAtTime [private]

RdiffBackupWrapper.RdiffBackupWrapper.__cmdRecoverPathAtTime [private]

RdiffBackupWrapper.RdiffBackupWrapper.__cmdListAtTime [private]

RdiffBackupWrapper.RdiffBackupWrapper.__cmdListSnapshots [private]


Generated on Wed Dec 19 19:25:04 2007 for HdLorean by  doxygen 1.5.4