mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +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:
parent
f66914d634
commit
1312b0254b
@ -79,19 +79,6 @@ shell('check_call', [
|
|||||||
"file://" + backup_duplicity_dir
|
"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.
|
# Remove duplicity's cache directory because it's redundant with our backup directory.
|
||||||
shutil.rmtree("/tmp/duplicity-archive-dir")
|
shutil.rmtree("/tmp/duplicity-archive-dir")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user