Enhancement #3007

backup-data retention policy multiple of 7

Added by Filippo Carletti over 6 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-backup-data
Target version:v6.6
Resolution: NEEDINFO:No

Description

Backup is scheduled on a weekly basis, i.e. a full backup is run at least once a week (7 days).
Due to this hard-coded behavior a retention of a number of days not multiple of 7 could leave a full set more than expected.
As an example, setting it to 30, will maintain 5 full sets instead of 4, because to restore a file from 29 days age the full backup from 35 is needed.

I'd like to have theese options:
Never
1 week
2 weeks
4 weeks (or one month)
2 months
6 months

Maybe also 1 year

DB values should be set to: 7,14,28,56,168,(364 for one year).

Associated revisions

Revision 8ef52de0
Added by Edoardo Spadoni over 6 years ago

retention policy. added multiple of 7 options. Refs #3007

Revision faeb2421
Added by Edoardo Spadoni over 6 years ago

config. added migration fragment. Refs #3007

History

#1 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version changed from ~FUTURE to v6.6
  • % Done changed from 0 to 20

#2 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Edoardo Spadoni
  • % Done changed from 20 to 30

#3 Updated by Edoardo Spadoni over 6 years ago

Modifications:
  • Inserted new options in drop list.
  • Modifiy db values (now are multiple of 7)
  • Migration fragment for backward compatibility

#4 Updated by Edoardo Spadoni over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Edoardo Spadoni)
  • % Done changed from 30 to 60
Test Case 1 (Migration)
  • Install new version
  • Check if CleanupOlderThan property has moved to new options value (7,14,28,56,168,364 gg)
Test Case 2
  • Set a value for Retention policy
  • Check if property CleanupOlderThan has changed correctly
  • Check after the inserted period if backup is removed

#5 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-backup-data-1.1.0-1.4.g4f389fb.ns6.noarch.rpm

#6 Updated by Filippo Carletti over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90
1. clean install: available retention policies are correct, in Italian and English
2. update, config show backup-data pre and post update:
  1. diff pre post
    3c3
    < CleanupOlderThan=30D
    ---

CleanupOlderThan=28D

duplicity is called with the updated value (28D).

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-base:
  • nethserver-backup-data-1.1.1-1.ns6.noarch.rpm

Also available in: Atom PDF