Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 772 Bytes

README.md

File metadata and controls

52 lines (32 loc) · 772 Bytes

node-mysql-scheduled-backups

scheduled backups for MySQL databases using Later.js

Running the container

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

Environment variables

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.