backward compatibility / breaking changes #137
Replies: 1 comment
-
|
Indeed, I already have fixed minimum and maximum conf version constants in the program, to handle proper error messages in future like But since v2 config files didn't have that value, it's difficult to have an accurate error message, since the same value would be missing anyway Unless something groundbreaking happens, v3 should always be able to read elder config files, while using an elder program with newer config files will work in CLI, and complain that there are unknown entries in GUI. Again (and again), thanks for the help you provide, really appreciated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Please bear with me... (see edit)
Playing around with (or trying to break 8-) npbackup I noticed that npbackup v3 cannot open nor check v2 config anymore. And with such big changes that is fine.
However, going forward in the future it would be good to have some kind of version/generation indicator in the config file?
This way the user can be more gracefully alerted that this is a valid npbackup config but should be opened with an older existing version. Instead of the above "something is critically wrong, good luck in figuring it out and opening you precious backups" message...
Also npbackup could determine if it can 'upgrade' the config if smaller non-breaking items are being added. So it would serve forward and backward compatibility items.
EDIT: and only now I check the newer config file format and see it already has conf_version indicator. Well done! Hopefully with also this scenario in mind.
for comparison here the old version config style
Beta Was this translation helpful? Give feedback.
All reactions