From 7e60d482f70d597759be36a19e063be682f45223 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Tue, 1 Mar 2016 05:37:31 -0800 Subject: [PATCH] Add cron strategies --- www/htdocs/index.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/www/htdocs/index.html b/www/htdocs/index.html index 85be7654..9e3b803e 100644 --- a/www/htdocs/index.html +++ b/www/htdocs/index.html @@ -1905,6 +1905,36 @@ class: title --- +## Scheduling backups + +In the "old world," we (generally) use cron. + +With containers, what are our options? + +-- + +- run `cron` on the Docker host, +
and put `docker run` in the crontab + +-- + +- run `cron` in the backup container, +
and make sure it keeps running +
(e.g. with `docker run --restart=…`) + +-- + +- run `cron` in a container, +
and start backup containers from there + +-- + +- listen to the Docker events stream, +
automatically scheduling backups +
when database containers are started + +--- + # Logs - Two strategies: