pingcap / pingcap/tidb

When saving log backup to s3, can I use s3 lifecycle rules to handle deletion of old data?

Open
#50,526 0 comments 0 reactions 0 assignees View on GitHub
component/br type/question
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

Currently, there is a log backup truncate command to remove the log backup from s3 ( backup store) that isnt needed. I was wondering, if it would be possible to use the native s3 lifecycle rules to delete the data automatically? For example, I set a setting in s3 to delete all data in `s3:://backupdb/dbname/pitr/` after 14 days.

Will it only delete the data that is older than 14 days? Or are there some meta data files that arent updated and might get auto deleted and break pitr?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.