Reputation: 190
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?
Is there any way to have a real-time replica for my databases and contents (MySQL and wp-contents for example)?
Should I get an image for each container and send to remote using SCP or FTP?
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
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