We implemented a new feature for our PASSDORA Box. Passdora is a Raspberry Pi based system which hosts the Sequry password-manager.
New Features
- What feature(s) did you add?
The Passdora-system stores valuable and important information (e.g. passwords) that can and should not be lost. Therefore the user should be able to create backups at any time to restore the system's current state in the future. To allow the user to start the backup process whenever he wants, a button should be added to the Passdora-box, which when pressed starts the backup.
It should also be possible to write the backup to a storage medium (e.g. USB-drive).
Since the backup contains valuable data the backup file should be properly encrypted (PGP) with a long alphanumeric-key given during system initialization.
In order to save space the backup should also be compressed as an archive.
To prevent the user from having to remember to create backups a CRON should be set up which a
utomatically creates backups in intervals.
The final backup should contain the following files:
- the database
- the QUIQQER/Sequry settings-folder (/etc)
- the system's settings-folder (/etc)
How did you implement it/them?
The backup-script should execute the following steps:
- dump the database: [632c78df]
- copy QUIQQER/Sequry /etc-folder: See 1.
- copy system's /etc-folder: [fa8bf777]
- put all copied files in a compressed archive: [fa8bf777]
- encrypt the archive using PGP: [fa8bf777] [bb4f5ee4]
- if a USB-drive is mounted copy the encrypted archive onto it: [aa727ac3] [807da606]
The following steps should enable the additional features:
- set up a CRON that executes the backup-script in intervals [9221cb41]
- add a button(-listener) that executes the backup-script on the press of a button
[0330969f] [cf94ed2f] [59484a8a] [faffe539]
Thanks for reading
Jan, for PCSG Developers
Posted on Utopian.io - Rewarding Open Source Contributors