Forum Discussion

kishanagarwal's avatar
kishanagarwal
Copper Contributor
May 24, 2022

Azure Cosmos DB backup manually

Hi all,

 

As per our requirement we have to take backup of our cosmos db and store those backup in storage account. We tried azure data migration tool as mentioned on (Azure Cosmos DB Data Migration tool | Azure updates | Microsoft Azure) it works perfectly with windows OS but  fails on ubuntu machine is there a way or workaround to run it on ubuntu?

 

We also tried mongodump command and got below error.

mongodump --host <hostname> --port 443 -u <username> -p "<Key for storage account>" --db <database name> --ssl --collection <collection name> -o cosmos.json

 

Result:

2022-05-17T12:28:31.966+0000 Failed: can't create session: could not connect to server: server selection error: server selection timeout
current topology: Type: Single
Servers:
Addr: <Server address>:443, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection(<Server address>:443[-121]) connection is closed

 

Please suggest an alternative or workaround to complete our goal.

No RepliesBe the first to reply

Resources