Skip to content

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.

4 participants