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$\"" |
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
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
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
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
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
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 |
Reimplemented from IStorageWrapper.IStorageWrapper.
def RdiffBackupWrapper.RdiffBackupWrapper.getAllSnapshots | ( | self | ) |
Gets a list of all snapshot performed by now
Reimplemented from IStorageWrapper.IStorageWrapper.
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