Short answer: keep customer-support training artifacts in object storage, keep their ownership and retention state in PostgreSQL or MySQL, and retain managed database backups as the full-system recovery path; a restore is complete only when the database state, artifact bytes, checksums, and deletion ledger agree.

This architecture decision record treats retention and deletion as correctness properties rather than storage settings. The deciding constraint is reproducibility: an operator must be able to explain why artifact train_01J8Y7 exists, when it becomes eligible for deletion, which backup windows may still contain its metadata, and whether a recovered copy has the same bytes that were approved for training.

A cheap backup that cannot answer those questions is operational debt.

The recommendation has a catch. It creates a coordinated restore across two persistence systems, so a very small application whose training corpus fits comfortably in one database may reasonably keep the bytes in that database and use its managed backup workflow. The split becomes valuable when artifact lifecycle, database recovery, and deletion evidence need independent controls.

Retention policy before recovery media

Neither category replaces the other in this customer-support workload. Object storage is the natural home for transcript bundles, redacted exports, evaluation sets, and model-training packages; the relational database remains the authority for tenant ownership, consent state, retention class, content digest, and the audit trail. Managed PostgreSQL or MySQL backups recover the authority after a database-loss event, while an object inventory and manifest prove that the referenced training bytes are present.

The restore unit must be named before selecting a mechanism. A whole-service disaster restore asks for a transactionally consistent database point plus every object referenced at that point. A one-tenant correction asks for a narrower import with explicit conflict rules. A single deleted artifact asks for a policy decision first: if its retention state says expired, restoration would violate the system's own invariant even when a byte copy happens to remain inside an unexpired backup.

This is why "simplest restore" needs a qualifier. AWS RDS, Google Cloud SQL, and Azure Database for PostgreSQL are examples of the managed-database category, but their product-specific retention and recovery contracts are not interchangeable evidence for an application's deletion promise. Verify the selected service's current documentation and contract during implementation. I'm not sure any generic comparison can settle that contractual detail; a recovery drill against the exact service, region, and configuration is what resolves it.

How can object storage and managed PostgreSQL or MySQL preserve SaaS backup deletions?

The first invariant is referential: every active artifact row names an object key, a content digest, a tenant, a retention class, and a policy version. The second is temporal: eligibility is computed from recorded inputs, not from an operator remembering why a file was uploaded. The third is monotonic deletion: once the deletion ledger records an artifact as expired, an older database snapshot cannot silently make it active again. The fourth is evidentiary: each restore attempt receives a stable operation ID and emits append-only audit events for planning, verification, commit, and rejection.

Deletion still wins.

One rule matters more than it first appears: backup retention is not the same thing as application retention. An operational object can be deleted when policy requires it while an encrypted backup generation remains governed by its documented expiry window. If a legal or contractual requirement demands erasure sooner than that window, this design is not suitable until the backup configuration and key-management model can meet that deadline. NIST SP 800-66 Rev. 2 is useful when the support system handles electronic protected health information because it frames security work as a risk-management and documentation exercise; it does not turn a generic backup setting into proof of HIPAA compliance.

Cache metadata is another boundary. An HTTP Cache-Control response header directs caches, according to MDN; it isn't a durable retention policy for the source object, a database snapshot, a downloaded export, or an operator's workstation. Setting no-store can be part of the delivery posture, but the deletion ledger still needs to account for every authoritative persistence layer.

Failures are contained by stage. Missing bytes or a digest mismatch stops verification before any relational mutation. A database conflict stops the transaction and leaves the restore operation retryable. A process interruption after commit is handled by reading the operation ID and returning the already-recorded result. No step claims exactly-once execution from the network; the system obtains exactly-once effects through idempotent writes, uniqueness constraints, and an audit record inside the same database transaction.

Keep it boring.

Cost accounting after correctness

Recovery shape Strongest fit Restore burden Retention and deletion consequence When not to choose it
Managed database backups only Small corpus stored with relational metadata; full-service recovery is dominant One database recovery path, followed by application validation Byte and metadata lifecycles are coupled to the database backup horizon Avoid when large artifacts need independent lifecycle controls or object-level verification
Object-storage exports only Portable, manifest-driven archives rebuilt by batch import Schema ordering, consistency boundaries, and replay logic belong to the application Per-object lifecycle can be explicit, but relational point-in-time recovery is lost Avoid when low recovery time for the whole transactional service is the priority
Database backups plus object manifests Split metadata and artifact architecture; both full and tenant-scoped drills matter Two systems must be staged and reconciled before release Operational deletion and backup expiry are documented separately Avoid when the team cannot own reconciliation tests and two-layer observability

The table deliberately does not name a universal cheapest option. Total cost includes retained bytes, database backup generations, retrieval, temporary restore capacity, engineering time, and the duration of a drill; those inputs vary by workload and contract. Measure them from a representative inventory and a timed rehearsal. Don't use a storage unit price as a proxy for recovery cost.

For this decision, the hybrid shape wins because customer-support training artifacts have a lifecycle distinct from tickets and account records. Consider a drill in which the recovered catalog contains train_01J8Y7, its manifest expects one object with a recorded SHA-256 digest, and the current deletion ledger says that the artifact expired after the selected database recovery point. The object may still be readable from a backup generation, and its digest may match perfectly, but neither fact authorizes reactivation. The reconciler records the artifact under deletions_reapplied, excludes it from the restored training set, and retains the operation ID that explains the decision. For a second artifact whose row is active and whose digest matches, the reconciler can commit the catalog entry. For a third whose bytes are absent or different, it records rejection and blocks release. This three-record example exposes the important distinction: existence, integrity, and eligibility are separate predicates, and all three must hold. The full acceptance test selects a database recovery point, builds the expected artifact set from metadata at that point, subtracts every deletion-ledger entry that must remain effective, fetches and hashes the surviving objects, and exposes the restored environment only after the sets match. Metrics should separate objects_expected, objects_verified, objects_rejected, and deletions_reapplied; one undifferentiated "restore succeeded" counter hides the dangerous cases.

Until they reconcile, the environment stays isolated.

Deployment also follows the invariant. Introduce manifest creation and digest verification before changing retention jobs, backfill in bounded batches, and record the policy version used for each decision. During a drill, restore into an isolated environment with outbound training jobs disabled, compare counts by tenant and retention class, sample audit chains, and destroy the temporary environment according to the same recorded policy. This is slower than clicking a restore button — and far easier to defend during reconciliation.

Code for the idempotent restore gate

The following Go sketch makes the coordination boundary visible. Storage and database implementations are intentionally generic. The manifest is immutable for a given recovery point, BeginRestore deduplicates the operation ID, and CommitArtifact places the artifact row and audit event in one relational transaction. Production code also needs authentication, bounded concurrency, cancellation, metrics, and encrypted transport, but those concerns should not obscure the state transition.

package recovery import ( "context" "crypto/sha256" "errors" "fmt" ) type ManifestEntry struct { ArtifactID string TenantID string ObjectKey string SHA256 [32]byte Policy string } type ObjectStore interface { Read(ctx context.Context, key string) ([]byte, error) } type Catalog interface { BeginRestore(ctx context.Context, operationID string) (alreadyDone bool, err error) IsDeleted(ctx context.Context, artifactID string) (bool, error) CommitArtifact(ctx context.Context, operationID string, entry ManifestEntry) error CompleteRestore(ctx context.Context, operationID string) error } func RestoreTrainingSet( ctx context.Context, operationID string, entries []ManifestEntry, objects ObjectStore, catalog Catalog, ) error { done, err := catalog.BeginRestore(ctx, operationID) if err != nil { return fmt.Errorf("begin restore: %w", err) } if done { return nil } for _, entry := range entries { deleted, err := catalog.IsDeleted(ctx, entry.ArtifactID) if err != nil { return fmt.Errorf("read deletion ledger for %s: %w", entry.ArtifactID, err) } if deleted { continue } payload, err := objects.Read(ctx, entry.ObjectKey) if err != nil { return fmt.Errorf("read artifact %s: %w", entry.ArtifactID, err) } if sha256.Sum256(payload) != entry.SHA256 { return errors.New("artifact digest mismatch") } if err := catalog.CommitArtifact(ctx, operationID, entry); err != nil { return fmt.Errorf("commit artifact %s: %w", entry.ArtifactID, err) } } return catalog.CompleteRestore(ctx, operationID) } 

There is a subtle race if deletion decisions can change while the loop runs. IsDeleted and CommitArtifact cannot be unrelated reads and writes in the concrete catalog; the commit transaction must re-check the deletion ledger, enforce a uniqueness key such as (operation_id, artifact_id), write the current policy version, and append the audit event. The early read merely avoids unnecessary object retrieval. Correctness lives in the transaction.

A retry with the same operation ID must converge. A new attempt against a different database recovery point must receive a new ID and a new immutable manifest, even when most entries overlap, because conflating those attempts destroys the audit trail. This distinction makes reconciliation mechanical: manifest count, committed count, skipped-as-deleted count, and rejected count must add up, and every terminal state must be explainable from stored evidence.

Rollout notes for the rejected single-system design

We rejected object-storage exports as the only database backup. Reconstructing relational state from exported rows transfers snapshot consistency, foreign-key ordering, schema compatibility, transaction replay, and recovery-time testing into application code. That can be justified for long-horizon portability or a narrowly scoped archival dataset, but it is a poor default for restoring the live ticket, tenant, and authorization graph under time pressure. Stick with managed database recovery for that graph when its recovery objectives and retention contract satisfy the system's documented requirements.

The opposite simplification — placing every training payload inside PostgreSQL or MySQL — remains valid for a small corpus when one atomic restore boundary matters more than independent artifact lifecycle. The catch is growth: backup duration, temporary restore capacity, and deletion semantics remain coupled to the database. Revisit the decision when drill measurements breach the team's recovery objective, not when a vendor comparison claims that one medium is categorically cheaper.

The final decision rule is concise. Choose the smallest number of recovery mechanisms that can prove the required restore unit, deletion deadline, and audit chain; for split customer-support artifacts, that is normally managed relational recovery plus verified object manifests. Reject any design whose successful drill can resurrect expired training data.

References