A module that downloads snapshots from MongoDB Sharded Clusters hosted on Atlas and Uploads them to GCP.
- Creating a
settings.js
by copying contents fromsettings.example.js
- Assign appropriate values to the keys
- Execute
npm install
if you are running the code for the first time - Execute the script by running
npm start
group_id
: Atlas Project IDcluster
: Name of the cluster in the project mentioned ingroup_id
public_key
: Atlas Project Public Keyprivate_key
: Atlas Project Private KeynSnapshots
: decides the latestn
snapshots to be transferredgcp_bucket_name
: GCP Cloud Storage Bucket name to which backup has to be trasferred togcp_service_acc_key
: Service Account JSON key that has write/read access to the bucketpolling_time_ms
: Polling interval in millis