How I got here:
I had around 15 containers running via "compose files", i was quite new to all of this and prefered the "omv approach" of being able to up, down, pull and stop containers via .ymal rather than creating them via gui in portainer. (at some point found out about portainer stacks but was already used to the omv way).
Long story short, I ran into some container network issues which triggered dark memories so i thought id be best to "practice" the restoring from a back-up. Somehow ran into issues with restoring the .grubparts so after endless tries I settled with just going a fresh install and trying to only restore my docker backup, since that contained most of the configurations.
So far mostly all good, managed to get omv back into a similar state with all the extras, shares and users from memory. Also managed to correctly map my docker backup folder to my existing backup and when entering the restore page i see all the backups of my containers via names and timestamps.
Situation:
When i try to restore a container backup it gives me an error message saying that the container .ymal does not exist. When i manually create the .yaml, omv doesnt error anymore but it prints out that the container data path is missing. When i create that path and try again, it seemly restores without issue, but at this point I could have also just manually restored the files as listed in the vol.list.
Questions:
Is this the intended functionality of restore? Meaning that if you would delete a compose file and then try to restore it, it would give you the same error?
I understand that this is valid way to roll back configuration changes in existing landscape, but was hoping this would also restore full paths if something happens to the folder structure.
Is there some way to run these restores via CLI and some parameter (like mkdir -p) enabling them to create missing paths?
While its an manageable task for me to create these 15 container structures manually it would be also nice to know for the future, since i previously naively commented out the docker paths in my omv backup, thinking that my daily docker backups would be more suitable + to overall save storage.
I will attach error details to the post. Also noticed that the vol.list 0 entry has two forward slashes (0,//docker/compose/name). Not sure why but seemly not an issue if you leave it or remove one. Might be something with the shares, but everything maps correctly so I ignored it.
For anyone struggling at the same point, these are the manual steps I mentioned:
- open vol.list stored in root of container backup via txt editor
- create listed paths and or adjust to new paths, either manually or via "mkdir -p" in CLI
- move .yaml and .env file into created compose folder (i assume it's always the 0. one, not sure if .env needs to be moved but might as well)
- run restore container via compose -> restore
- go to compose->files->add->import and select your docker compose directory (folders not .yaml)
- *optional* clean out omv comments out of yaml files to fully restore previos state
Thanks in advance for any feedback or response, sorry if this was posted / answered somewhere before, was not able to find anything referencing this topic.