Data retention, exports and backups
What the platform prunes automatically, what it can export, and what you must back up yourself.
What is pruned automatically#
| Data | Policy |
|---|---|
| Flow runs and step logs, scheduled-job logs | terminal runs older than their flow’s retentionDays, else FLOW_RETENTION_MAX_AGE_DAYS (default 60; job logs always use it); dry-run by default — arm with FLOW_RETENTION_DRY_RUN=false; WAITING runs are never pruned; RUNNING runs with no activity for FLOW_STALE_RUNNING_HOURS (default 24) are failed as Abandoned first; metrics kelta_worker_flowlog_purged, kelta_worker_flow_executions_abandoned |
| Request logs and traces (tenant monitoring) | per-tenant retention in Setup → Platform → Monitoring → Settings |
| Presence and realtime events | ephemeral (minutes) |
What is kept#
Audit logs, login history, field history and record versions are retained indefinitely. Deleted records leave a tombstone for sync clients and, when versioning is on, their last snapshot.
Exports#
- Data —
POST /api/data-exports({ "exportScope": "FULL" | "SELECTIVE", "collectionIds": […], "format": "CSV" | "JSON" }) runs as a job and returns a presigned download; Setup → Platform → Bulk jobs tracks it.GET /api/data-exportslists exports,GET /api/data-exports/{id}reports one,POST /api/data-exports/{id}/cancelstops a pending one andGET /api/data-exports/{id}/downloadfetches the result (allVIEW_ALL_DATA). Scheduled exports are scheduled jobs of typeDATA_EXPORT. Exports are masked for the requester (data masking). - Reports — CSV/PDF export and scheduled delivery (Dashboards and reports).
- Metadata — packages via
kelta metadata export(Sandboxes and promotion). A metadata package is not a backup of data.
Backups#
The platform has no built-in backup scheduler. Back up:
- PostgreSQL — all tenant data, metadata, audit and history. Use your database’s native tooling (
pg_dump, WAL archiving, managed snapshots). - Object storage — attachments and module JARs when
KELTA_S3_ENABLEDis on. - Secrets — the signing JWK set,
KELTA_ENCRYPTION_KEY(without itENCRYPTEDfields are unrecoverable), VAPID and HMAC secrets.
Redis and NATS hold caches, rate-limit counters and in-flight events; they can be rebuilt. See Upgrading for the order of operations around a restore.