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

How to verify/restore backups created by CronJob #85

Closed
basilv opened this issue Aug 3, 2021 · 2 comments
Closed

How to verify/restore backups created by CronJob #85

basilv opened this issue Aug 3, 2021 · 2 comments

Comments

@basilv
Copy link

basilv commented Aug 3, 2021

The documentation is very unclear how to verify or restore backups created by a CronJob. There's no running pod to connect to for running the verify, versus the long-running backup container approach.

Would it be just as easy as running a second CronJob to run the backup script in verification mode?

@WadeBarnes
Copy link
Member

It should be. The command would be /backup.sh -s -v all, rather than /backup.sh -1.

@basilv
Copy link
Author

basilv commented Aug 4, 2021

Including the -s option caused an error as it seemed to think it was running in scheduled mode and couldn't fine the schedule setting. Running /backup.sh -v all seemed to do the trick.

Also, I didn't need a separate CronJob, I just changed the one CronJob's command to:
- "/bin/bash"
- "-c"
- "/backup.sh -c && /backup.sh -1 && /backup.sh -v all"

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

No branches or pull requests

2 participants