Package duplicity :: Module collections :: Class BackupSet
[hide private]
[frames] | no frames]

Class BackupSet

source code

Backup set - the backup information produced by one session

Instance Methods [hide private]
 
__init__(self, backend)
Initialize new backup set, only backend is required at first
source code
 
is_complete(self)
Assume complete if found manifest file
source code
 
add_filename(self, filename)
Add a filename to given set.
source code
 
set_info(self, pr)
Set BackupSet information from ParseResults object
source code
 
set_manifest(self, remote_filename)
Add local and remote manifest filenames to backup set
source code
 
delete(self)
Remove all files in set, both local and remote
source code
 
__str__(self)
For now just list files in set
source code
 
get_timestr(self)
Return time string suitable for log statements
source code
 
check_manifests(self)
Make sure remote manifest is equal to local one
source code
 
get_local_manifest(self)
Return manifest object by reading local manifest file
source code
 
get_remote_manifest(self)
Return manifest by reading remote manifest on backend
source code
 
get_manifest(self)
Return manifest object, showing preference for local copy
source code
 
get_filenames(self)
Return sorted list of (remote) filenames of files in set
source code
 
get_time(self)
Return time if full backup, or end_time if incremental
source code
 
__len__(self)
Return the number of volumes in the set
source code
Method Details [hide private]

add_filename(self, filename)

source code 

Add a filename to given set. Return true if it fits.

The filename will match the given set if it has the right times and is of the right type. The information will be set from the first filename given.
Parameters:
  • filename (string) - name of file to add

set_info(self, pr)

source code 
Set BackupSet information from ParseResults object
Parameters:
  • pr - parse results