Skip to content

[Epic] Backup drivers: failed backups reported as success, wrong archive restored, archives never deleted, no retention #5206

Open

Description

@myasnikovdaniil

Summary

Backups on the default flow (cozy-default, platform bucket) work, I checked postgres, mariadb, clickhouse and mongodb on v1.7.0 on a live cluster. What is broken is everything around them: failed backups reported as success or stuck in Running, restore of the wrong archive, archives that nothing deletes, no retention, and the setup of the system bucket. Every item below was reproduced, steps are in the issue itself. The driver code is the same on main (4087218). This epic keeps them in one place.

Failed backups reported wrongly

The last one is the clickhouse sidecar that reads S3 credentials only at pod start, I added the measured failure in a comment.

Restore picks the wrong archive

Archives nobody deletes, no retention

Already tracked and related: #3965 (cleanup and retention), #3966 (teardown GC) and the design in #4192 (BackupRetentionPolicy).

System bucket setup

Follow-ups found while fixing the above

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug
    epicA large development increment that brings definite value to Cozystack users
    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)
    area/storageIssues or PRs related to storage (linstor, seaweedfs, bucket, velero, harbor)
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)area/storageIssues or PRs related to storage (linstor, seaweedfs, bucket, velero, harbor)epicA large development increment that brings definite value to Cozystack userskind/bugCategorizes issue or PR as related to a bugtriage/acceptedIndicates an issue is ready to be actively worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions