Open Michal-Leszczynski opened 1 year ago
@tzach do you know how we should set those default values?
Not with out looking deeper into this.
Let use the same values that we put into the documentation https://manager.docs.scylladb.com/stable/sctool/backup.html#retention https://manager.docs.scylladb.com/stable/sctool/backup.html#retention-days
retention 7, retention-days 0
Let's inform the end-user about the 30 days retention for the backups made with the deleted task.
{retention: 7, retentionDays: 0}
- that is also what is stated in backup documentation: https://github.com/scylladb/scylla-manager/blob/87cc888256a91dcd8ab7b2ca791598f0fe141746/pkg/command/backup/cmd.go#L83-L84{retention: 3, retentionDays: 0}
. https://github.com/scylladb/scylla-manager/blob/87cc888256a91dcd8ab7b2ca791598f0fe141746/pkg/service/backup/model.go#L243-L249{retention: 0, retentionDays: 30}
. https://github.com/scylladb/scylla-manager/blob/87cc888256a91dcd8ab7b2ca791598f0fe141746/pkg/service/backup/service.go#L87-L97Q1: What should be the default retention policy for a new task?
Q2: Should Scylla Manager purge backups created by deleted tasks? If yes, then should it still be using (if possible) task's original retention policy or should it use default retention policy for deleted tasks? What should be this default retention policy for deleted tasks?