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

Skip to content

Conversation

larsxschneider
Copy link
Member

GHES 2.13 is already out of support and therefore I think we should
remove the code.

Furthermore the ghe-restore-pages-rsync script uses
share/github-backup-utils/ghe-restore-userdata which I think does not
quote/escape the variable $dirname properly. As a consequence GitHub
pages with whitespaces in their path cause errors on restore.

GHES 2.13 is already out of support and therefore I think we should
remove the code.

Furthermore the `ghe-restore-pages-rsync` script uses
`share/github-backup-utils/ghe-restore-userdata` which I think does not
quote/escape the variable `$dirname` properly. As a consequence GitHub
pages with whitespaces in their path cause errors on restore.
Copy link
Contributor

@jianghao0718 jianghao0718 left a comment

Choose a reason for hiding this comment

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

LGTM!

@vvt-png1
Copy link

vvt-png1 commented May 18, 2020 via email

Copy link
Member

@ryansimmen ryansimmen left a comment

Choose a reason for hiding this comment

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

Approved

@larsxschneider larsxschneider merged commit 71cd8f6 into master May 18, 2020
@larsxschneider larsxschneider deleted the ls/remove-old-code branch May 18, 2020 14:36
@larsxschneider
Copy link
Member Author

@cainejette I can confirm a successful backup and restore procedure with the latest HEAD against a single node GHES appliance ✅

$ git log --oneline -1
71cd8f6 (HEAD -> master, origin/master, origin/HEAD) Merge pull request #608 from github/ls/remove-old-code


$ ./bin/ghe-backup
Starting backup of larsxschneider-025895a7445ef9d59.ghe-test.org with backup-utils v2.20.2 in snapshot 20200524T160204
Connect larsxschneider-025895a7445ef9d59.ghe-test.org:122 OK (v2.20.8)
Backing up GitHub settings ...
Backing up SSH authorized keys ...
Backing up SSH host keys ...
Backing up MySQL database using logical backup strategy ...
Backing up Redis database ...
Backing up audit log ...
Backing up hookshot logs ...
Backing up Git repositories ...
Backing up GitHub Pages artifacts ...
Backing up storage data ...
Warning: no routes found, skipping storage backup ...
Backing up custom Git hooks ...
Backing up Elasticsearch indices ...
Completed backup of larsxschneider-025895a7445ef9d59.ghe-test.org:122 in snapshot 20200524T160204 at 16:02:34
Checking for leaked ssh keys ...
* No leaked keys found


$ ./bin/ghe-restore -f larsxschneider-025895a7445ef9d59.ghe-test.org
Checking for leaked keys in the backup snapshot that is being restored ...
* No leaked keys found
Connect larsxschneider-025895a7445ef9d59.ghe-test.org:122 OK (v2.20.8)
Starting restore of larsxschneider-025895a7445ef9d59.ghe-test.org:122 with backup-utils v2.20.2 from snapshot 20200524T160204
Stopping cron and github-timerd ...
Restoring UUID ...
Restoring MySQL database from logical backup snapshot on an appliance configured for logical backups ...
Restoring Redis database ...
Restoring Git repositories ...
Restoring Gists ...
Warning: Gist backup missing. Skipping ...
Restoring GitHub Pages artifacts ...
Restoring SSH authorized keys ...
Restoring storage data ...
Restoring custom Git hooks ...
Restoring Elasticsearch indices ...
Restoring Audit logs ...
Restoring hookshot logs ...
Configuring appliance ...
Starting cron ...
Restoring SSH host keys ...
Restore of larsxschneider-025895a7445ef9d59.ghe-test.org:122 from snapshot 20200524T160204 finished.

@cainejette
Copy link
Contributor

Thanks for doing that validation, @larsxschneider !

This was referenced Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants