Running periodic tasks #
Sometimes an application require tasks to run on a certain schedule. To achieve this on Docker Swarm, the following options are available:
General setup #
All examples build upon the following application/stack. The application writes files to a path called
/backup which is backed up a
backup Docker volume. For complete disaster recovery, the objective is to mirror the contents of the
backup volume to a minio service.
Each example will use minio’s
mc client to backup files from the local Docker volume to a remote minio.