mirror of
https://github.com/astaxie/cookbook.git
synced 2025-04-18 18:04:06 +03:00
1.1 KiB
1.1 KiB
Store MongoDB Backups in Minio Server 
In this recipe we will learn how to store MongoDB backups in Minio Server.
1. Prerequisites
2. Configuration Steps
Minio server is running using alias m1
. Follow Minio client complete guide here for details. MongoDB backups are stored in mongobkp
directory.
Create a bucket.
$ mc mb m1/mongobkp
Bucket created successfully ‘m1/mongobkp’.
Continuously mirror local backup to Minio server.
Continuously mirror mongobkp
folder recursively to Minio. Read more on mc mirror
here
$ mc mirror --force --remove --watch mongobkp/ m1/mongobkp