When launching SABnzbd it would be nice if the current version checks the sabnzbd.ini file for the current version and last backup date.
This could help with:
- accidental deletes that could now be restored;
- added/removed/default settings which can be preserved with an update;
- using profiles such as 'low cpu' and 'high cpu'.
# v0.7.14
# This sabnzbd.ini was automatically generated. To change, start SABnzbd, or make a copy first and select 'use backup' from the CONFIG menu.
#
It could be added as a crontab from SABnzbd, with a separate script, or in OS X and Windows a 'helper' service, a separate option to add when installing SABnzbd.
Not yet, it involves some changes:
- First of all, SABnzbd has to rewrite the sabnzbd.ini file each time it starts, to make sure the first lines are correct, or at least check the first line and compare it with the current (running) version of SABnzbd.
- Second issue will be that a 'file list' has to be made, listing all possible backup files (limit = 10?) that could be used to restore the current settings, disabling version that aren't compatible.
- Backups may have to be verified for integrity.
It can be compared to the how Linux/*x cycles the syslog files, but with an extra check when reading the files back.
I could write a sample script if I can find time, but I don't expect such a feature before version 0.7.12.
I noticed SABnzbd makes only one backup of the .ini file at this moment. My request would be an extension of this feature with a rollback function to restore old settings.
Different versions of SABnzbd use different locations to store the sabnzbd.ini. I wouldn't know where it could be found on Windows Vista for instance. It would be nice if SABnzbd would take care of the backup/restore instead of an external script.