|
string
|
get_passphrase(n,
action,
for_signing=False)
Check to make sure passphrase is indeed needed, then get the
passphrase from environment, from gpg-agent, or user |
|
|
|
int
|
dummy_backup(tarblock_iter)
Fake writing to backend, but do go through all the source paths. |
|
|
|
int
|
|
|
int
|
write_multivol(backup_type,
tarblock_iter,
man_outfp,
sig_outfp,
backend)
Encrypt volumes of tarblock_iter and write to backend |
|
|
|
fileobj
|
get_man_fileobj(backup_type)
Return a fileobj opened for writing, save results as manifest |
|
|
|
fileobj
|
get_sig_fileobj(sig_type)
Return a fileobj opened for writing, save results as signature |
|
|
|
void
|
full_backup(col_stats)
Do full backup of directory to backend, using archive_dir |
|
|
|
|
check_sig_chain(col_stats)
Get last signature chain for inc backup, or None if none available |
|
|
|
void
|
print_statistics(stats,
bytes_written)
If globals.print_statistics, print stats after adding bytes_written |
|
|
|
void
|
incremental_backup(sig_chain)
Do incremental backup of directory to backend, using archive_dir |
|
|
|
void
|
list_current(col_stats)
List the files current in the archive (examining signature only) |
|
|
|
void
|
restore(col_stats)
Restore archive in globals.backend to globals.local_path |
|
|
|
|
|
|
|
restore_get_enc_fileobj(backend,
filename,
volume_info)
Return plaintext fileobj from encrypted filename on backend |
|
|
|
void
|
restore_check_hash(volume_info,
vol_path)
Check the hash of vol_path path against data in volume_info |
|
|
|
void
|
|
|
void
|
verify(col_stats)
Verify files, logging differences |
|
|
|
void
|
cleanup(col_stats)
Delete the extraneous files in the current backend |
|
|
|
void
|
|
|
void
|
remove_old(col_stats)
Remove backup files older than globals.remove_time from backend |
|
|
|
void
|
sync_archive()
Synchronize local archive manifest file and sig chains to remote
archives. |
|
|
|
void
|
|
|
void
|
|
|
|
log_startup_parms(verbosity=5)
log Python, duplicity, and system versions |
|
|
|
|
|
|
void
|
with_tempdir(fn)
Execute function and guarantee cleanup of tempdir is called |
|
|