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

Unable to get the correct folder for recovery while doing a periodic backup task #319

Closed
shuijing198799 opened this issue Mar 14, 2019 · 2 comments
Assignees

Comments

@shuijing198799
Copy link
Contributor

When I create a cronjob to do periodic backup, the folder of persistent volume is "scheduled-backup-date +%Y-%m-%dT%H%M%S-${MY_POD_NAME}" but when I want to do restore, the pvc and the backupname is the same ".Values.name" . so if I do periodic backup in persistent volume. I can't get the correct pvc and folder address to restore.

@gregwebs
Copy link
Contributor

gregwebs commented Jul 2, 2019

@LinuxGit has this changed now?

@LinuxGit
Copy link
Contributor

LinuxGit commented Jul 2, 2019

Yes. Now the scheduled backup name is backupName=scheduled-backup-date -u -d @${timestamp} "+%Y%m%d-%H%M%S"``.
You could restore the backup via tide-backup chart:
https://github.com/pingcap/tidb-operator/blob/master/charts/tidb-backup/templates/backup-pvc.yaml#L1
@shuijing198799 already knows. I fixed it in #576.

@LinuxGit LinuxGit closed this as completed Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants