This service collects files from all rsync daemons running in a specific stack (
$STACK) and service (
$SERVICE). It uses Rancher Metadata (
$METADATA) service to discover running rsync daemons automatically. So you can simply replicate rsync daemon to all your hosts and backup
/var/lib/docker/volumes automatically :)
Also this service uses rsnapshot-like backup management (hard links) to save disk space.
Create a service that will start rsync daemons on all necessary hosts (I use zhongpei/rsyncd at the moment). You can start as many rsync daemons as you want. Also mount all your backup sources to
Create a service with this container and point it to the previous service by setting
$SERVICEvariables. You should set
Neverand run this service when you want to do a new backup. Also mount a volume to
/backupto be sure that backups are being saved when container is destroyed.
Starting by Cron
Rancher Container Cronfrom Rancher Catalog
Add new label to rsync service: cron.schedule="your cron rule here"