AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.2k stars 180 forks source link

[ENHANCEMENT] Backup/Restore Settings Option #3452

Open EricClaeys opened 8 months ago

EricClaeys commented 8 months ago

Discussed in https://github.com/AllskyTeam/allsky/discussions/3448

Originally posted by **custard2022** March 3, 2024 Hello! Would like to request to Export/Backup and then Import/Restore Allsky Settings option, along with saved local profiles that you could pick from depending on what you're doing with the system. 1. Backup/Export settings like: - Allsky Settings page (`allsky/config/settings*.json`) - Overlays (parts of `allsky/config/overlays` directory) - Editor files (`allsky/config/config.sh` and `allsky/config/ftp-settings.sh`) - Module setup (parts of `allsky/config/modules` directory) - WiFi networks 2. Restore/Import the settings. 3. Have option on what to export/import from the list above.
Alex-developer commented 8 months ago

@EricClaeys I started work on this a little while ago. Please give me a shout before doing anything as I have quite a lot of it done.

EricClaeys commented 8 months ago

Cool - I was assuming it was a post-v2024.xx.xx change so wasn't going to do anything.

EricClaeys commented 1 week ago

Thoughts: Multiple versions of backups should be possible, probably implemented by adding YYYYMMDD-HHMMSS to the file names.

This "backup" feature can be combined with the ability to upload a zip file with system data and Allsky configuration files to GitHub to help debug problems. Since the contents of ~/allsky/env.json are private, it should NOT be uploaded to GitHub. Perhaps this "backup" feature could create:

The "upload to GitHub" feature would also create:

The system_data.zip and Allsky_config_files.zip files would created and uploaded to GitHub when a user reports a problem.