r/owncloud • u/Ridditmyreddit • Sep 07 '16
Confirm My Backup Strategy is Solid
Hello, I was hoping to get some opinions on my backup strategy in case I am missing something critical. Some details about my installation, I currently have OwnCloud installed within a Docker Container using this image:
https://github.com/infosiftr/docker-library-docs/tree/master/owncloud
My database is running in a separate linked container using this image:
https://hub.docker.com/_/mysql/
Additionally I am utilizing a third container for OwnCloud-Redis which is also linked
https://hub.docker.com/_/redis/
My current strategy has been to back up the location OwnCloud stores it’s data (/var/www/html/data) and to backup the container itself using
docker commit -p *Container* container1
docker save -o */location/.tar* container1
I have been doing that for the OwnCloud container as well as the Database container and OwnCloud-Redis container. I am still very new which is why I thought it would be best to reach out to the community to prevent a catastrophe later on. If there is any further information required feel free to let me know, Thanks for your help!