Enhancement #2024

Backup data: implement retention policy

Added by Giacomo Sanchietti about 8 years ago. Updated about 8 years ago.

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

100%

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

Description

Implement a simple retention policy like: remove all backups older than X days.

Retention policy can be implemented in post-backup-data event using duplicity commands like:

duplicity remove-older-than 31D --archive-dir /var/lib/nethserver/backup/duplicity/ file:///mnt/backup/ --force
duplicity cleanup --no-encryption --archive-dir /var/lib/nethserver/backup/duplicity/ file:///mnt/backup/<HOSTNAME>/ --force --extra-clean

Add a simple web UI to configure retention policy.


Related issues

Related to NethServer 6 - Enhancement #2022: Backup data: do not check for already mounted dir CLOSED

Associated revisions

Revision 664dce32
Added by Giacomo Sanchietti about 8 years ago

First implementation of simple retention policy. Refs #2024

Revision 6ef15291
Added by Giacomo Sanchietti about 8 years ago

nethserver-backup.po: update messages for retention policy. Refs #2024

Revision e3382952
Added by Giacomo Sanchietti about 8 years ago

web ui: add simple interface for retention policy. Refs #2024

Revision 54049e0b
Added by Giacomo Sanchietti about 8 years ago

spec: spec: Release 1.0.2 Refs #2024 #2023 #2022

Revision 447432cf
Added by Giacomo Sanchietti about 8 years ago

spec: update to 1.0.2. Refs #2023 #2024

History

#1 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#2 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 70

Implementation tested on dev machine.

#4 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 70 to 80
Packages ready in testing repository:
  • nethserver-backup-data-1.0.2
  • nethserver-backup-config-1.0.2

#5 Updated by Davide Principi about 8 years ago

  • Assignee deleted (Giacomo Sanchietti)

ON_QA: Assignee reset

#6 Updated by Davide Principi about 8 years ago

  • Assignee set to Davide Principi

#7 Updated by Davide Principi about 8 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 80 to 100

Verified

Installed RPMs

    # rpm -qa | grep -F .ns6
nethserver-php-1.1.0-1.ns6.noarch
nethserver-smartd-1.0.0-1.ns6.noarch
nethserver-backup-data-1.0.4-1.ns6.noarch
nethserver-yum-1.1.0-1.ns6.noarch
nethserver-base-1.3.0-1.ns6.noarch
nethserver-nethgui-1.2.1-1.ns6.noarch
nethserver-httpd-admin-1.0.4-1.ns6.noarch
nethserver-grub-1.0.1-1.ns6.noarch
nethserver-openssh-1.0.2-1.ns6.noarch
nethserver-backup-config-1.0.3-1.ns6.noarch
nethserver-lib-1.1.2-1.ns6.noarch
postfix-2.9.6-2.ns6.x86_64
nethserver-ntp-1.0.4-1.ns6.noarch

Tested with:
  • 7 days backup retention time
  • Destination CIFS
  • Mail notifications to external address
  • Report ALWAYS
Cases:
  • Full => OK, cleanup triggered
  • Incremental => OK, cleanup triggered

According to Giacomo we can ignore these lines in /var/log/last-cleanup.log

Import of duplicity.backends.giobackend Failed: No module named gio
Import of duplicity.backends.sshbackend Failed: No module named paramiko

#8 Updated by Davide Principi about 8 years ago

  • Assignee deleted (Davide Principi)

#9 Updated by Davide Principi about 8 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Moved to nethserver-updates repository

Also available in: Atom PDF