Open a CMD and navigate to the following directory:
This is the default location of the MongoDB installation. This is also the location of the mongodump.exe which will be used to create the DB backup
- Execute the following command
<bvquser> the BVQ user
<bvquser password> the BVQ user password
<bvq db> the name of the database (dbname)
<backup path> where you want to store the backup
This performs the backup of the database and store all data of the database in a directory you can find here <backup path>\dbnameBackup command syntax ...
### Syntax of the backup command is:
mongodump --authenticationDatabase admin -u <bvquser> -p <bvquser password> -d <bvq db> --gzip --out=<backup path>
All Object in <BLUE> need to be adjusted based on your local installation and given BVQ USER/PASSWORD and the name of the MongoDB.
mongodump --authenticationDatabase admin -u bvq -p P@ssw0rd -d bvq --gzip --out=D:\backup
A successful backup should have the following folder structure and is located under the folder you specified in the command <backup path>
### Folder structure
D: |- backup
- Zip the directory <backup path>\dbname
Use Zip or 7zip to create one file out of the backup directory.
Never send single files, the complete directory is needed.