简体   繁体   中英

How to backup docker with multiple services?

I have a docker-compose file with multiple services and each service has its own volumes. ( for example WordPress with one MySQL service and web service)

I want to have an everyday backup on a remote backup server. what is best practice and how should I do this?

  1. Is there any way to have a real-time replica for my databases and contents (MySQL and wp-contents for example)?

  2. Should I get an image for each container and send to remote using SCP or FTP?

  3. Should make a tar file from volume folders and send to remote using SCP or FTP?

Or is there any other suggestion?

I've found a very good way to live sync. lsyncd is a very good package that works with rsync but it is live.

I've sync all of my volumes on second server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM