In this recipe we will learn how to store MongoDB backups in Minio Server.
Minio server is running using alias m1
. Follow Minio client complete guide here for details. MongoDB backups are stored in mongobkp
directory.
$ mc mb m1/mongobkp
Bucket created successfully ‘m1/mongobkp’.
Continuously mirror mongobkp
folder recursively to Minio. Read more on mc mirror
here
$ mc mirror --force --remove --watch mongobkp/ m1/mongobkp