Site icon Database Tutorials

Automatizing backup process on sharded clusters

 

In sharded replicas before backup process you need to disable balancer and when backup finishes you need to enable the balancer.

This process doesn’t defer if you use snapshot or use dump backups.

You can use crontab jobs to automatize the backup process. You can use the sh script given below for your backup processes:

 

disableBalancer.js

 

disableBalancer.sh

 

enableBalancer.js

 

enableBalancer.sh

Exit mobile version