Mahmood Afzalzadeh
Mahmood Afzalzadeh

Reputation: 190

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?

Upvotes: 2

Views: 312

Answers (1)

Mahmood Afzalzadeh
Mahmood Afzalzadeh

Reputation: 190

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.

Upvotes: 1

Related Questions