Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFSscheduleBackup #814

Closed
twobunches opened this issue Aug 16, 2023 · 4 comments
Closed

NFSscheduleBackup #814

twobunches opened this issue Aug 16, 2023 · 4 comments
Labels
question Further information is requested

Comments

@twobunches
Copy link

General Question

backup的crd中有backupRetention和jobhistoryLimit这两个字段,nfs定时备份配置之后,备份能够执行,但是留存策略和jobhistoryLimit似乎是不生效的,我在代码中也没有看到关于留存相关的逻辑,这是否需要自己去实现?因为不可能让备份无限增长

我的backup.yaml如下:
apiVersion: mysql.radondb.com/v1beta1
kind: Backup
metadata:
name: backup-cronjob
spec:
backupops:
nfs:
volume:
path: /
server: "192.101.93.252"
clusterName: cluster
method: xtrabackup
schedule:
backupRetention: 1
jobhistoryLimit: 1
cronExpression: "30 15 * * *"
type: nfs

@twobunches twobunches added the question Further information is requested label Aug 16, 2023
@github-actions
Copy link

Hi! thanks for your contribution! great first issue!

@acekingke
Copy link
Contributor

acekingke commented Aug 16, 2023 via email

@twobunches
Copy link
Author

感谢您的回复,还有一个问题需要请教的是,NFSserver那里是否支持域名的形式呢,比如k8s中service的DNS(service.ns.svc.cluster.local)。

@acekingke
Copy link
Contributor

不行,官方的 k8s 例子有错误, 把其中 service 换成 DNS 无法运行,您可以尝试一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants