mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
Merge pull request #34 from Kedu-SCCL/master
Install alpine package 'tzdata' to allow passing timezone as environm…
This commit is contained in:
commit
995f00f257
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
FROM alpine:3.12
|
FROM alpine:3.12
|
||||||
LABEL maintainer "Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>"
|
LABEL maintainer "Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>"
|
||||||
|
|
||||||
RUN apk add --update bash mysql-client gzip openssl && rm -rf /var/cache/apk/*
|
RUN apk add --update tzdata bash mysql-client gzip openssl && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
ARG OS=alpine-linux
|
ARG OS=alpine-linux
|
||||||
ARG ARCH=amd64
|
ARG ARCH=amd64
|
||||||
|
|
|
@ -23,7 +23,7 @@ docker container run -d \
|
||||||
- `MYSQL_PASS`: The password of your mysql database.
|
- `MYSQL_PASS`: The password of your mysql database.
|
||||||
- `MYSQL_DB`: The database name to dump. Default: `--all-databases`.
|
- `MYSQL_DB`: The database name to dump. Default: `--all-databases`.
|
||||||
- `MYSQLDUMP_OPTS`: Command line arguments to pass to mysqldump. Example: `--single-transaction`.
|
- `MYSQLDUMP_OPTS`: Command line arguments to pass to mysqldump. Example: `--single-transaction`.
|
||||||
- `CRON_TIME`: The interval of cron job to run mysqldump. `0 3 * * sun` by default, which is every Sunday at 03:00.
|
- `CRON_TIME`: The interval of cron job to run mysqldump. `0 3 * * sun` by default, which is every Sunday at 03:00. It uses UTC timezone.
|
||||||
- `MAX_BACKUPS`: The number of backups to keep. When reaching the limit, the old backup will be discarded. No limit by default.
|
- `MAX_BACKUPS`: The number of backups to keep. When reaching the limit, the old backup will be discarded. No limit by default.
|
||||||
- `INIT_BACKUP`: If set, create a backup when the container starts.
|
- `INIT_BACKUP`: If set, create a backup when the container starts.
|
||||||
- `INIT_RESTORE_LATEST`: If set, restores latest backup.
|
- `INIT_RESTORE_LATEST`: If set, restores latest backup.
|
||||||
|
|
Loading…
Reference in a new issue