edit-icon download-icon

Export data

Last Updated: Jan 17, 2018

Migrate to a local MongoDB

ApsaraDB for MongoDB supports routine backup task settings and temporary backup. You can regularly or occasionally implement backup tasks and perform data export by downloading the backup file.

  1. Log on to the MongoDB console, and select Backup Recovery > Backup List.

  2. Select the target backup set and click Download.

  3. After manually downloading the backup file, create a local MongoDB environment.

  4. Run the mongostore command to conveniently complete data export. For example, run the following command to import data.

    1. cat xx.ar (the file downloaded by the console) | mongorestore -h xxx --port xxx -u[root user] -p[root password] --drop --gzip --archive -vvvv --stopOnError
Thank you! We've received your feedback.