Backup Configuration
Act2 provides a robust, built-in backup system for stateful services. Backup configuration is stored on each resource as backup_options and should be managed through the ServOS Dashboard or resource API.
Configuring Backups via UI
- Navigate to your Service Details page.
- Go to the Backups tab (or look for the “Backup Settings” section).
- Click Configure Backups.
- Select your Backup Strategy:
- Postgres: Dumps your database using
pg_dump. - MySQL: Dumps your database using
mysqldump. - Volume Snapshot: Backs up the entire persistent volume using Restic.
- Postgres: Dumps your database using
- Set your Schedule using a Cron expression (e.g.,
0 0 * * *for daily at midnight). - Set the Retention Policy (number of days to keep backups).
- Select a Storage Provider (S3 or MinIO).
API Reference
Backup policy updates are applied through /api/v1/resources/{id} by setting backup_options.
Get Configuration
GET /api/v1/resources/{id}
Response:
{
"id": "uuid",
"backup_options": {
"strategy": "postgres",
"frequency_cron": "0 0 * * *",
"retention_days": 14,
"enabled": true,
"storage_provider_id": "uuid"
}
}
Update Configuration
PUT /api/v1/resources/{id}
Request Body:
{
"backup_options": {
"strategy": "postgres",
"frequency_cron": "0 0 * * *",
"retention_days": 14,
"enabled": true,
"storage_provider_id": "uuid"
}
}