Backup
mongodump
It is recommended to use the date when backup was taken and Apinizer version information in backup file naming. This way:
- It is easy to understand which backup belongs to which system version
- Version incompatibilities are prevented in restore operations
- Management of archived backups is facilitated
Restore
To restore Apinizer configuration data from backup, the backup files you created are used. This operation is performed withmongorestore command on Linux shell.
Basic Restore Command
The previously taken backup file can be restored using the following command:mongorestore
Restore to Replica Set
Example command that restores to entire replica set without targeting Primary MongoDB server:mongorestore
Single Collection Restore
If only a single collection is backed up, not the entire database, to restore it:mongorestore

