Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@snh
Copy link
Member

@snh snh commented Feb 24, 2016

This small PR fixes the remote logging output so that it correctly shows the snapshot being used for the restore. It currently incorrectly outputs a timestamp of when the restore started rather than that of the snapshot being used.

Also incorporates a couple of minor tweaks to the wording of the remote logging messages to make them consistent.

/cc @github/backup-utils

bin/ghe-backup Outdated

# Log backup start message in /var/log/syslog on remote instance
ghe_remote_logger "Starting backup from $(hostname) in snapshot $GHE_SNAPSHOT_TIMESTAMP ..."
ghe_remote_logger "Starting backup from $(hostname) / snapshot $GHE_SNAPSHOT_TIMESTAMP ..."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's clearer with "in". With the slash it looks like backing up from hostname/snapshot.

@michaeltwofish
Copy link

Clearly a bug, so 👍. Can we log failure as well?

@rubiojr
Copy link
Member

rubiojr commented Feb 24, 2016

Replacing GHE_SNAPSHOT_TIMESTAMP with GHE_RESTORE_SNAPSHOT sounds good to me, but the other changes to replace / with in could break log parsers. Can we skip those? Looks like a cosmetic issue only.

@snh
Copy link
Member Author

snh commented Feb 24, 2016

Replacing GHE_SNAPSHOT_TIMESTAMP with GHE_RESTORE_SNAPSHOT sounds good to me, but the other changes to replace / with in could break log parsers. Can we skip those? Looks like a cosmetic issue only.

Sure, sounds like a good approach for now. I have revered these to their original format.

@gnawhleinad
Copy link
Contributor

LGTM, 🚢!

snh added a commit that referenced this pull request Feb 25, 2016
Fix remote logging output to correctly show snapshot being restored
@snh snh merged commit f013612 into master Feb 25, 2016
@snh snh deleted the snh/restore-log-snapshot branch February 25, 2016 02:23
cjonsmith pushed a commit that referenced this pull request Sep 22, 2020
Adds support for backing up Actions files
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.

5 participants