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.
Go to MongoDB console, and select Backup Recovery > Backup List.
Select the target backup set and click Download.
After manually downloading the backup file, create a local MongoDB environment.
mongostorecommand to conveniently complete data export. For example, run the following command to import data:
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