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

Class SignatureChain

source code

A number of linked SignatureSets

Analog to BackupChain - start with a full-sig, and continue with new-sigs.

Instance Methods [hide private]
 
__init__(self, local, location)
Return new SignatureChain.
source code
 
__str__(self)
Local or Remote and List of files in the set
source code
 
check_times(self, time_list)
Check to make sure times are in whole seconds
source code
 
islocal(self)
Return true if represents a signature chain in archive_dir
source code
 
add_filename(self, filename, pr=None)
Add new sig filename to current chain.
source code
 
get_fileobjs(self, time=None)
Return ordered list of signature fileobjs opened for reading, optionally at a certain time
source code
 
delete(self)
Remove all files in signature set
source code
 
get_filenames(self, time=None)
Return ordered list of filenames in set, up to a provided time
source code
Method Details [hide private]

__init__(self, local, location)
(Constructor)

source code 

Return new SignatureChain.

local should be true iff the signature chain resides in globals.archive_dir and false if the chain is in globals.backend.

Parameters:
  • local (Boolean) - True if sig chain in globals.archive_dir
  • location (globals.archive_dir or globals.backend) - Where the sig chain is located

add_filename(self, filename, pr=None)

source code 

Add new sig filename to current chain. Return true if fits