Backup previous version and configs #1150
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As stated in the todo list for the Installation Process, this creates a backup to CONFIG_DIR/.ardupilot_methodic_configurator/backups/VERSION/
The current software is backed up as a wheel package pulled from PyPI (not local install). In addition to this, the vehicles directory is also backed up to the same location.
To restore the backed up version, run the following inside the AMC venv:
pip install --force-reinstall CONFIG_DIR/.ardupilot_methodic_configurator/backups/VERSION/ardupilot_methodic_configurator-VERSION-py3-none-any.whl
In case the python modules that are dependencies chnage versions later and you wish to restore the versions of the dependencies that are required by the backed up version, run the following inside the venv:
pip install --force-reinstall CONFIG_DIR/.ardupilot_methodic_configurator/backups/VERSION/*.whl
@amilcarlucas, I guess this is what you meant by backing up, so just tried my hand at this