angelo-v / wordpress-backup

Simple Docker container that helps you backup and restore your WordPress blog.
80 stars 60 forks source link

small comment / note regarding backups into a docker container. #4

Closed javaknight closed 9 years ago

javaknight commented 9 years ago

note that the official Docker wordpress and Mysql containers separate out their data directory (/var/www/html and /var/lib/mysql, I think). via the VOLUME command. Docker inspect the image to see where docker is saving your files.

So when you do a backup into a container, you're really backing up into the VOLUMEs that were created on your host, and not the actual containers.

javaknight commented 9 years ago

and thus, if you attempt a commit to image, you wont get the data you just backed up, because data volume contents don't go into the image.