1
0
mirror of https://github.com/astaxie/cookbook.git synced 2025-04-18 18:04:06 +03:00
minio-cookbook/docs/store-mysql-backups-in-minio.md

1.1 KiB
Raw Permalink Blame History

Store MySQL Backups in Minio Server Gitter

In this recipe we will learn how to store MySQL backups in Minio Server.

1. Prerequisites

  • Install mc from here.
  • Install Minio Server from here.
  • MySQL official doc

2. Configuration Steps

Minio server is running using alias m1. Follow Minio client complete guide here for details. MySQL backups are stored in mysqlbkp directory.

Create a bucket.

$ mc mb m1/mysqlbkp
Bucket created successfully m1/mysqlbkp.

Continuously mirror local backup to Minio server.

Continuously mirror mysqlbkp folder recursively to Minio. Read more on mc mirror here

$ mc mirror --force --remove --watch mysqlbkp/ m1/mysqlbkp