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

remove rsync restore method used by GHES versions prior to 2.13 #608

Merged
merged 2 commits into from May 18, 2020

Conversation

@larsxschneider
Copy link
Member

@larsxschneider larsxschneider commented May 11, 2020

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.
@larsxschneider larsxschneider requested review from ryansimmen and lildude May 11, 2020
Copy link
Contributor

@jianghao0718 jianghao0718 left a comment

LGTM!

@vvt-png1
Copy link

@vvt-png1 vvt-png1 commented May 18, 2020

Copy link
Member

@ryansimmen ryansimmen left a comment

Approved

@larsxschneider larsxschneider merged commit 71cd8f6 into master May 18, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@larsxschneider larsxschneider deleted the ls/remove-old-code branch May 18, 2020
@larsxschneider
Copy link
Member Author

@larsxschneider larsxschneider commented May 24, 2020

@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

@cainejette cainejette commented May 28, 2020

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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.
X Tutup