Skip to content

Switch back to optimised backup route calculation#392

Merged
lildude merged 4 commits into
masterfrom
lildude/optimise-backup-routes
Apr 24, 2018
Merged

Switch back to optimised backup route calculation#392
lildude merged 4 commits into
masterfrom
lildude/optimise-backup-routes

Conversation

@lildude

@lildude lildude commented Apr 24, 2018

Copy link
Copy Markdown
Member

As with the restore routes, I inadvertently switched to a sub-optimal route calculation method in #375.

This PR switches back to the optimised backup routes calculation method as #389 did for the restore routes.

@lildude lildude requested a review from a team April 24, 2018 11:26
@@ -64,6 +64,8 @@ user="${host%@*}"
hostnames=$host
ssh_config_file_opt=
tempdir=$(mktemp -d -t backup-utils-restore-XXXXXX)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Whoops 😊. Good catch. Fixed in 7b3381a

@@ -37,6 +37,8 @@ user="${host%@*}"
hostnames=$host
ssh_config_file_opt=
tempdir=$(mktemp -d -t backup-utils-restore-XXXXXX)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As mentioned, the tempdir needs to be created on the remote appliance too, as per https://github.com/github/backup-utils/blob/legacy/share/github-backup-utils/ghe-backup-alambic-cluster-ng#L40.

@lildude lildude merged commit 100dd2d into master Apr 24, 2018
@lildude lildude deleted the lildude/optimise-backup-routes branch April 24, 2018 12:59
@lildude lildude mentioned this pull request May 9, 2018
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.

2 participants