Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 19456b3e4c | |||
| 871d80285e | |||
| c2f2ba4e7c | |||
| d9137ac281 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,4 @@
|
||||
backups
|
||||
./config.yaml
|
||||
compose.yaml
|
||||
ddbb
|
||||
main
|
||||
|
||||
18
README.md
18
README.md
@@ -89,6 +89,24 @@ the following actions:
|
||||
- Restore
|
||||
- Integrity check
|
||||
|
||||
## Using web interface
|
||||
Head to `http://<host>:3000`, you'll have a dashboard to manage your dumps.
|
||||
|
||||
You're responsible of authentication and TLS, these are not automatically
|
||||
set up by this tool. I recommend running behind a reverse proxy such as
|
||||
*Traefik* to handle basic auth middleware, and *Let's Encrypt* certificates.
|
||||
|
||||
An orther solution would be to use a tool like *Authelia* to secure access.
|
||||
|
||||
## Using API
|
||||
Available API commands are:
|
||||
| Endpoint | Method | Arguments | Response |
|
||||
| --- | --- | --- | --- |
|
||||
| /list | GET | nil | Job List |
|
||||
| /dump | POST | `{id=<job id>}` | Backup Job Result |
|
||||
| /restore | POST | `{id=<job id>}` | Restore Job Result |
|
||||
| /check-integrity | POST | `{id=<job id>}` | Job Integrity Status |
|
||||
|
||||
# Building yourself
|
||||
There is a `Justfile` (*Makefile* alternative), which produces a *Docker* image, so this is pretty simple:
|
||||
```bash
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
services:
|
||||
ddbb:
|
||||
image: ramiuslr/ddbb:latest
|
||||
container_name: ddbb
|
||||
restart: always
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./backup:/backup
|
||||
ports:
|
||||
- 12345:12345
|
||||
Reference in New Issue
Block a user