u
This commit is contained in:
28
docs/api/routes/backup.md
Normal file
28
docs/api/routes/backup.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# `GET /backup`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
List backups and service status
|
||||
|
||||
Retrieves the current status of the internal backup service and lists available hourly, daily, and monthly backups.
|
||||
|
||||
## Response `200`
|
||||
|
||||
Backup service status and listing
|
||||
|
||||
```json
|
||||
{
|
||||
"status": {},
|
||||
"backups": {}
|
||||
}
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 500 | Internal error |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
25
docs/api/routes/backup/run.md
Normal file
25
docs/api/routes/backup/run.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# `POST /backup/run`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
Trigger manual backup
|
||||
|
||||
Immediately triggers an on-demand backup snapshot of VFS, storage, and SQLite database.
|
||||
|
||||
## Response `200`
|
||||
|
||||
Backup triggered successfully
|
||||
|
||||
```json
|
||||
{}
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 500 | Backup execution failure |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user