radondb-mysql-kubernetes icon indicating copy to clipboard operation
radondb-mysql-kubernetes copied to clipboard

[question] How to get the backup I want from S3?

Open fisher-1 opened this issue 3 years ago • 7 comments
trafficstars

According to the test, my s3 backup file is in the format of "backup_202211810457", when I have multiple mysql clusters, how do I distinguish which backup is what I need?

fisher-1 avatar Jan 18 '22 11:01 fisher-1

Hi! thanks for your contribution! great first issue!

github-actions[bot] avatar Jan 18 '22 11:01 github-actions[bot]

Hello, you can use different bucket to save backup data for different clusters.

runkecheng avatar Jan 18 '22 13:01 runkecheng

Thank you for your reply, if I have multiple clusters, I have to add new buckets every time I create a cluster, too many buckets are not easy to manage. I want several clusters to be backed up to the same bucket, is there any other way to distinguish which cluster the backup belongs to?

fisher-1 avatar Jan 19 '22 01:01 fisher-1

This is a good question, but we think that if one more clusters with only one bucket to backup, when a bucket is deleted, all clusters backups will be lost.

acekingke avatar Jan 19 '22 02:01 acekingke

This is a good question, but we think that if one more clusters with only one bucket to backup, when a bucket is deleted, all clusters backups will be lost.

We don't usually change the configuration of S3. Now the situation is that our backups on S3 are distinguished by bucket names, such as "mysqlbak-", "mongobak-", under the same bucket, backups are distinguished by cluster names, such as "cluster-test", "cluster-product", "cluster-pre" and so on.

fisher-1 avatar Jan 19 '22 03:01 fisher-1

I think the feature of custom backup prefix can be added. @andyli029

runkecheng avatar Jan 19 '22 03:01 runkecheng

I think the feature of custom backup prefix can be added. @andyli029

@fisher-1

ACK. WIP.

andyli029 avatar Jan 21 '22 02:01 andyli029