diff --git a/src/app/documentation/documentation-database/documentation-database.component.html b/src/app/documentation/documentation-database/documentation-database.component.html index 02c9a4d..4a38b1c 100644 --- a/src/app/documentation/documentation-database/documentation-database.component.html +++ b/src/app/documentation/documentation-database/documentation-database.component.html @@ -1,52 +1,68 @@
- The used database instance is a MongoDB instance running on the BIC, storing all application data. The admin database
- management page can be accessed
-
- https://definma-db.apps.de1.bosch-iot-cloud.com/api-doc/
- .
- However, it is recommended to use a dedicated MongoDB application for anything apart from a quick look. The two tested
- applications are MongoDB Compass and
- Robo 3T (recommended for trying queries).
+ The used database instance is a MongoDB instance running on the BIC, storing all application data.
+ The admin database management page can be accessed here.
+ However, it is recommended to use a dedicated MongoDB application for anything apart from a quick look.
+ The two tested applications are MongoDB Compass and
+ Robo 3T (recommended for trying queries).
+
To connect to the BIC instance from your local application follow the
BIC guide.
-
TLDR:
+
+ TL;DR:
For the first time:
Every time:
- For creating a database backup, you must follow the same steps from above (except the last one). Additionally you need
- the mongodump installed.
- Open the MongoDB bin folder
- (normally at C:\Program Files\MongoDB\Server\4.2\bin) in a PowerShell and execute following command for backup,
- adjust parameters and credentials as needed:
- .\mongodump.exe /port:1120 /db:"6ebe4c5d-0da3-4347-b484-66894dcf3f27" /username:"<username>"
- /password:"<username>" /out:"C:\Path\to\backup\folder"
- Restoring the database from a backup is done with mongorestore.exe, more information can be found at the
+ For creating a database backup, you must follow the same steps from above (except the last one).
+ Additionally you need the MongoDB Tools installed.
+ Extract the ZIP file to a location on your hard drive and launch a Git Bash in that directory.
+
To back up the database from the BIC:
++./mongodump --port 1120 -d <database> -u <username> -p <password> --gzip -o 'C:\path\to\backup\folder' ++ +
To restore the database to the BIC:
++./mongorestore --port 1120 -d <database> -u <username> -p <password> --gzip --drop 'C:\path\to\backup\folder' ++ +
To restore the database to your local MongoDB instance:
++./mongorestore -d dfopdb --gzip --drop 'C:\path\to\backup\folder\<database>' ++ +
+ More information can be found inside the
documentation.
- The BIC service also creates internal backup, which can be requested to restore, see
+ The BIC service also creates an internal backup, which can be requested to restore, see
MongoDB FAQ