Back up docker data?
What's the recommended way to set up a backup process for data for a docker container, such as config?
I can imagine running one main docker and running other dockers inside it (parent and children) or setting up a docker container that has access to the folder with the data for the other docker and back up from that docker (siblings). In either case with the backup being pushed to a network share.
I could also imagine sharing the folder with the data on the network and pull from it, but I don't know if there's a way to make that persistent through a reboot? (Perhaps through a docker with samba running inside it?)
-
Still curious what's recommended, however I got my data shared on the network with this Docker container: https://hub.docker.com/r/elswork/samba
From here I should be able to pull from it for backup purposes.
-
My advice is not to use the docker side to store critical data, remember this box is a router.
As of just docker back up, you may want to explore docker volume https://docs.docker.com/storage/volumes/ and I am sure there are many different ways of backup
-
Absolutely no plans to store critical data on it, however, many docker containers will want to store their settings and backing up those settings so that you'll have an easier time to get things back online if there's an issue seems like a wise choice. Docker volumes are how this data makes its way outside the container, I already have this. However Firewalla's drive may also fail, or I may mess up my settings and want to return to an earlier state. My understanding has been that only the Docker containers persist through Firewalla reboots, so if that's correct I have to find a Docker based way to ensure this backup (and/or versioning). The approach I suggested shares my Docker folder on my larger home network and from there I can back it up wherever I want.
If there are better solutions I'd love to hear it.
Ultimately my plan is to run some of my home automation on the Blue Plus as it's much less power consuming than my server that's running it now. I have NodeRED up and running and deCONZ for zigbee as well.
Please sign in to leave a comment.
Comments
3 comments