backup: dont remove old increments because then we lose the backup history right before the last full backup, instead let them disappear along with full backups when a whole chain becomes very old

This commit is contained in:
Joshua Tauberer 2014-08-11 11:45:40 +00:00
parent f66914d634
commit 1312b0254b
1 changed files with 0 additions and 13 deletions

View File

@ -79,19 +79,6 @@ shell('check_call', [
"file://" + backup_duplicity_dir
])
# Remove old increments. This deletes incremental data obsoleted by
# any subsequent full backups.
shell('check_call', [
"/usr/bin/duplicity",
"remove-all-inc-of-but-n-full",
"1",
"--archive-dir", "/tmp/duplicity-archive-dir",
"--name", "mailinabox",
"--force",
"--verbosity", "warning",
"file://" + backup_duplicity_dir
])
# Remove duplicity's cache directory because it's redundant with our backup directory.
shutil.rmtree("/tmp/duplicity-archive-dir")