Skip to content

Use remote's mktemp to create temp dir on remote host#395

Merged
lildude merged 3 commits into
masterfrom
lildude/diff-remote-tmpdir
Apr 25, 2018
Merged

Use remote's mktemp to create temp dir on remote host#395
lildude merged 3 commits into
masterfrom
lildude/diff-remote-tmpdir

Conversation

@lildude

@lildude lildude commented Apr 24, 2018

Copy link
Copy Markdown
Member

At the moment, when we create the temporary directory on the remote GitHub Enterprise host during a backup or restore, we create it using the path determined by running mktemp on the backup host.

For the most part this works, however it doesn't work when the backup host uses a different OS with a different default $TMPDIR, like macOS which uses /var/folders.

This PR addresses this by using mkdir on the GitHub Enterprise appliance to create the tempdir there.

/cc @jatoben

This is to protect against the situation where the backup host may have
a different default $TMPDIR settings vs the backup host, for example
macOS uses /var/folders whilst Linux uses /tmp.
@lildude lildude requested a review from a team April 24, 2018 17:20
@lildude lildude added the bug label Apr 24, 2018
@lildude lildude merged commit fb666f8 into master Apr 25, 2018
@lildude lildude deleted the lildude/diff-remote-tmpdir branch April 25, 2018 10:56
@lildude lildude mentioned this pull request May 9, 2018
dooleydevin pushed a commit that referenced this pull request Jul 19, 2023
@dooleydevin dooleydevin mentioned this pull request Jul 26, 2023
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