globaleaks / whistleblowing-software

GlobaLeaks is free, open-source whistleblowing software enabling anyone to easily set up and maintain a secure reporting platform.
https://www.globaleaks.org
Other
1.23k stars 269 forks source link

Execute a full backup of GlobaLeaks before upgrading it #2149

Open fpietrosanti opened 6 years ago

fpietrosanti commented 6 years ago

Current behavior Actually we suggest the execution of a manual backup before the upgrade of globaleaks: https://globaleaks.readthedocs.io/en/latest/BackupGuide.html

Expected behavior This ticket is to execute a full backup of GlobaLeaks before upgrading it, after the installation of a new package, in a full automatic way.

This ticket is to delete the backup only after X days following the upgrade (es: 7 days), in order to gives the sysadmin a way to detect possible malfunctions.

The configuration of the amount of time the automatic pre-upgrade backup has to be kept, has to be configurable.

evilaliv3 commented 6 years ago

In commit https://github.com/globaleaks/GlobaLeaks/commit/3b497f6069c9fc4c32d4526869c9dd4f8b48ce10 i've implemented a first step for this.