Amanda is whole disk backup. It backs up your entire system from the home folders to any databases that may be in use and anything else that may be installed and configured on the machine. Moving OH to a Docker container isn’t going to do anything to make that easier. I’m doubtful that IOStack makes this much easier either.
On-the-other-hand, if all you care about is backing up just the openHAB configuration, sudo openhab-cli backup will grab all the openHAB configs you have created for you in one go. From a backup perspective all that running OH in Docker is going to change is the command you issue to create the backup (tar xvfz openhab-backup.tgs /path/to/mounted/volumes).
In short, this looks a whole lot of work and added complexity and it doesn’t even solve the original problem. Having said that:
1 sudo openhab-cli backup
6 You won’t have openhab-cli any more since you are running in Docker so you have to unzip the zip file backup created on the new machine. Copy the stuff under conf to the folder mounted to the container under /openhab/conf and the stuff under userdata to the folder mounted to the container under /openhab/userdata.
If the whole idea of mounting folders to the container doesn’t make sense to you, I strongly suggest doing some research on Docker and how Docker works. It’s not always straight forward for those who don’t understand it.
Thanks for the clear explanation and I can understand that for OH3 the current setup is the best way forward. But if we take in account all other applications like Grafana, nodered, influxDB, and all others for now and in the future.
What is in your opinion then the best way forward?
If you want to back up everything you have two choices:
Back up the whole machine which takes you right back to Amanda.
Back up each one individually, which is usually no more difficult to do for an individual service installed than it is for an individual service running in Docker. You just need to identify the right folder to save.
There are a lot of reasons to run stuff in containers. Ease of backup really isn’t one of them.