X Tutup
The Wayback Machine - https://web.archive.org/web/20201211005828/https://github.com/github/backup-utils/issues/594
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

[Question] Monitoring scheduled backups #594

Closed
singhsarab opened this issue Mar 30, 2020 · 6 comments
Closed

[Question] Monitoring scheduled backups #594

singhsarab opened this issue Mar 30, 2020 · 6 comments
Labels

Comments

@singhsarab
Copy link

@singhsarab singhsarab commented Mar 30, 2020

What is the recommended way to setup scheduled backups for GHES instances?
Are there any recommendations for monitoring whether the scheduled backup is running as expected?

@djdefi
Copy link
Member

@djdefi djdefi commented Mar 30, 2020

Scheduling and failure notification is generally achieved via crontab on the host running the backup utilities: https://github.com/github/backup-utils/blob/master/docs/scheduling-backups.md

We have also seen some customers use a CI type system as a job runner.

@singhsarab
Copy link
Author

@singhsarab singhsarab commented Apr 1, 2020

Can the backup command fail ?
If yes, what are the possible reasons for the backup command to fail and how can we detect that?

Let's say we use crontab and schedule backups, is there a way to know if the cron job is running as expected? and also report failures if any?

@singhsarab
Copy link
Author

@singhsarab singhsarab commented Apr 1, 2020

@djdefi We were also considering using Azure's backup functionality, do you know if that be used for restoring ?

@cainejette
Copy link
Contributor

@cainejette cainejette commented Jun 23, 2020

Yes @singhsarab I'm sure the backup process can fail -- I would recommend checking cron logs if you are using cron to schedule backups.

@dgutzmann
Copy link

@dgutzmann dgutzmann commented Oct 26, 2020

As an example, you can take advantage of cron emails and pagerduty integration. If the command returns anything, an email will be sent to the MAILTO address. Pagerduty has a decent list of features around email integrations.

Since the below is redirecting standard out to a file, the only time an email will be sent is if something is printed to standard error.

MAILTO="${UNIQUE PAGERDUTY EMAIL ADDRESS}"

# Job Definition
0 */12 * * *  root  /opt/ghe/backup-utils/bin/ghe-backup -v 1>>/opt/ghe/logs/backup.log
@cainejette
Copy link
Contributor

@cainejette cainejette commented Nov 23, 2020

Please re-open if you have any other questions related to this.

@cainejette cainejette closed this Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.
X Tutup