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

Class BackupChain

source code

BackupChain - a number of linked BackupSets

A BackupChain always starts with a full backup set and continues with incremental ones.

Instance Methods [hide private]
 
__init__(self, backend)
Initialize new chain, only backend is required at first
source code
 
set_full(self, fullset)
Add full backup set
source code
 
add_inc(self, incset)
Add incset to self.
source code
 
delete(self)
Delete all sets in chain, in reverse order
source code
 
get_sets_at_time(self, time)
Return a list of sets in chain earlier or equal to time
source code
 
get_last(self)
Return last BackupSet in chain
source code
 
get_first(self)
Return first BackupSet in chain (ie the full backup)
source code
 
short_desc(self)
Return a short one-line description of the chain, suitable for log messages.
source code
 
to_log_info(self, prefix='')
Return summary, suitable for printing to log
source code
 
__str__(self)
Return string representation, for testing purposes
source code
 
get_num_volumes(self)
Return the total number of volumes in the chain
source code
 
get_all_sets(self)
Return list of all backup sets in chain
source code
Method Details [hide private]

add_inc(self, incset)

source code 

Add incset to self. Return False if incset does not match