Export data

Last Updated: Jul 25, 2017

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. Go to 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. Execute the mongostore command to conveniently complete data export. For example, execute 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.