We implemented a new feature for our PASSDORA Box. Passdora is a Raspberry Pi based system which hosts the Sequry password-manager.
The Passdora system offers a function to create backups, so the users' data isn't lost if the system drive fails or some other fault causes data loss. So far the files saved in a backup had to be copied back onto a new system manually. Since the backup is encrypted, compressed, contains a lot of files and even a database dump, the manual restore is too complex for a regular user. In order to simplify that process, a feature should be added that only requires a backup file and the key used for encryption to restore the system back to the state of that backup.
add a dialog that asks for a backup file and it's restore-key:
upload the backup to the system
ajax/upload.php [link]try to decrypt the backup with the given restore-key
ajax/processRestoreFile.php [link]copy the files in the backup-archive to their correct location
sequry/passdora: Build_Image/files/passdora_scripts/lib/autostart/RestoreListener.py [link]restore the database
sequry/passdora: Build_Image/files/passdora_scripts/lib/autostart/RestoreListener.py [link]restart the system
sequry/passdora: Build_Image/files/passdora_scripts/lib/autostart/RestoreListener.py [link]Since the commits unfortunately overlap, a nice log cannot be created :(.
I tried to specify the files that were affected, you can find a link behind every file name.
A complete commit log can you find [here]
as always, a picture says more than 1000 words
Thanks for reading,
Jan, for PCSG Developers