scheduled backups for MySQL databases using Later.js
docker run \
-e user="" \
-e pass="" \
-e host="" \
-e port="" \
-e dbname="" \
-e interval="" \
-e saveDir="/tmp" \
<container-name>
Run a backup for myDB
every minute:
docker run -d --name mysql-backup-amf -e dbname="myDB" -e interval="min" mysql-backup
user
MySQL user name
pass
MySQL password
host
MySQL host
port
MySQL port number
dbname
MySQL database name
interval
How often you want to run the backup. Must be a string of one of these options:
"minute", "hour", "day", "week", "month", "year"
saveDir
Directory to store the backup files, relative to file system root.