Backups + Restore
End-to-end backup lifecycle with job and schedule control.
Athena supports S3-compatible backup and restore operations for registered PostgreSQL clients.
Core Endpoints
POST /admin/backupsGET /admin/backupsPOST /admin/backups/{key}/restoreGET /admin/backups/{key}/downloadDELETE /admin/backups/{key}
Job + Schedule Endpoints
GET /admin/backups/jobsGET /admin/backups/jobs/{id}POST /admin/backups/jobs/{id}/cancelGET /admin/backups/schedulesPOST /admin/backups/schedulesPATCH /admin/backups/schedules/{id}DELETE /admin/backups/schedules/{id}
Example: Create Backup
curl -X POST "http://localhost:4052/admin/backups" \
-H "content-type: application/json" \
-H "x-athena-client: athena_logging" \
-H "x-athena-admin-key: $ATHENA_ADMIN_KEY" \
-d '{
"client_name":"athena_logging",
"bucket":"athena-backups",
"prefix":"daily"
}'Required Runtime Dependencies
ATHENA_PG_DUMP_PATH/ATHENA_PG_RESTORE_PATH(or binaries on PATH)- S3-compatible endpoint and credentials
- Reachable target database clients
Operational Notes
- Treat backup/restore jobs as async workflows.
- Monitor job status before invoking follow-up actions.
- Apply retention policies through schedule configuration.