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

Log backup/restore start/complete on remote instance #131

Merged
merged 6 commits into from
May 21, 2015
Merged

Conversation

rtomayko
Copy link
Contributor

Adds logging to /var/log/syslog on the remote GHE instance to both ghe-backup and ghe-restore. The logging is fairly simple and records only start and completion but that should be fine for now. This should work with remote syslog configurations since logger(1) is used as well.

Example messages:

May 21 11:29:30 ghe-io backup-utils: Starting backup from rtko.local in snapshot 20150521T075236
May 21 11:29:40 ghe-io backup-utils: Completed backup from rtko.local / snapshot 20150521T075236 successfully.
May 21 11:30:00 ghe-io backup-utils: Starting restore from rtko.local / snapshot 20150521T075236 ...
May 21 11:30:30 ghe-io backup-utils: Completed restore from rtko.local / snapshot 20150521T075236 ...

Internal ticket: https://github.com/github/enterprise2/issues/3805#issuecomment-103219349.

/cc @donal, @dbussink, @jatoben, @cjs

@dbussink
Copy link
Contributor

👍

Verified logger(1) works as intended on 11.10.34x as well so we
should be fine here.
@MikeMcQuaid
Copy link
Contributor

Seems sensible 👍

rtomayko added a commit that referenced this pull request May 21, 2015
Log backup/restore start/complete on remote instance
@rtomayko rtomayko merged commit edec3fa into master May 21, 2015
@rubiojr rubiojr deleted the remote-logger branch February 25, 2016 17:23
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

Successfully merging this pull request may close these issues.

3 participants