1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-21 07:07:05 +00:00

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

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")