RSyncBAckup API Documentation.

Documentation of how to use the RSyncBackup API.

RSyncBackup

__init__

Args:

Desc: The constructor of the RSyncBackup class. One instance of the class can perform multiple backups.

timeToBackup

Args:

Desc: Returns true if it's time to backup. If the lastRunFile was set to None or does not exist then a warning is logged, but true is still returned.

backup

Args:

Desc: Perform a backup. This can be called multiple times with different arguments to backup different dirs to different destinations. Returns true if successful.

trimArchives

Args:

Desc: WARNING: THIS DELETES FILES. ALWAYS run with testRun set to true and ensure that the archiveDir contains only expendable data when developing your own backup script. This method will remove old archives that number beyond entriesToKeep. If in doubt just don't use it...

finish

Args: None
Desc: If a lastRunFile was provided write out the last run time to it.