39 lines
1.1 KiB
Markdown
39 lines
1.1 KiB
Markdown
# AdAstra Scripts
|
|
|
|
A collection of utility scripts for AdAstra projects. Each script is self-contained and can be used independently.
|
|
|
|
## Scripts
|
|
|
|
### MongoDB
|
|
|
|
| Script | Description |
|
|
|---|---|
|
|
| [`dbdump_mongo/`](dbdump_mongo/) | Backup MongoDB databases with multi-environment support (prod, uat, staging, …) |
|
|
| [`dbrestore_mongo/`](dbrestore_mongo/) | Restore a MongoDB backup with interactive directory navigation |
|
|
| [`dbutils_mongo/`](dbutils_mongo/) | Spin up a local MongoDB + Mongo Express instance via Docker |
|
|
|
|
#### Typical MongoDB workflow
|
|
|
|
```bash
|
|
# 1. Backup from a remote MongoDB
|
|
cd dbdump_mongo && ./db-dump.sh dump
|
|
|
|
# 2. Start a local MongoDB instance
|
|
cd dbutils_mongo && ./db-start.sh up
|
|
|
|
# 3. Restore the backup locally
|
|
cd dbrestore_mongo && ./db-restore.sh
|
|
```
|
|
|
|
## Requirements
|
|
|
|
Each script lists its own requirements in its README. Common dependencies:
|
|
|
|
- **Bash**
|
|
- **MongoDB Database Tools** (`mongodump` / `mongorestore`) — [download](https://www.mongodb.com/try/download/database-tools)
|
|
- **Docker & Docker Compose** (for `dbutils_mongo` only)
|
|
|
|
## Author
|
|
|
|
Julien Gautier — AdAstra
|