Sign inSign up

kylemhall/automysqlbackup-docker

By kylemhall

•Updated over 7 years ago

automysqlbackup-docker is a simple docker image for running automysqlbackup.

Image
0

178

kylemhall/automysqlbackup-docker repository overview

⁠automysqlbackup-docker

automysqlbackup-docker is a simple docker image for running automysqlbackup.

⁠Setup

  • Create a user for automysqlbackup to use:
    • GRANT EVENT, LOCK TABLES, SELECT ON *.* to 'automysqlbackup'@'%' IDENTIFIED BY 'password';
    • FLUSH PRIVILEGES;
  • Create a directory backups on your host system, this is where the sql files will be stored.
  • Create the file automysqlbackup.env on your host system.
  • In that file, set the following directives:
USERNAME=automysqlbackup
PASSWORD=password
DBHOST=my-db-container
  • Set up a cronjob on the host system to run this command nightly, docker run --rm -v /path/to/backups:/backups --env-file /path/to/automysqlbackup.env --network my-database-network automysqlbackup where my-database-network is a Docker network that the database container shares with the automysqlbackup container.

Tag summary

Content type

Image

Digest

Size

95.9 MB

Last updated

over 7 years ago

docker pull kylemhall/automysqlbackup-docker