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

add rootless rsync commands to drush rsync task #3080

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

Schnitzel
Copy link
Contributor

@Schnitzel Schnitzel commented Mar 24, 2022

With rootless systems running a normal drush rsync command causes some issues as rootless systems (like openshift or k8s rootless) do not allow the executing user to do some of the standard things that rsync wants to do (change owner and group to what the source had).
Therefore we tell drush rsync to run rsync with some additional parameters that will prevent it to fail

This is also documented here: https://docs.lagoon.sh/drupal/drush-9/#drush-rsync-from-local-to-remote-environments

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for changelog and subsystem label(s) applied

Explain the details for making this change. What existing problem does the pull request solve?

Closing issues

Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

With rootless systems running a normal `drush rsync` command causes some issues as rootless systems (like openshift or k8s rootless) do not allow the executing user to do some of the standard things that rsync wants to do (change owner and group to what the source had).
Therefore we tell `drush rsync` to run `rsync` with some additional parameters that will prevent it to fail
@timclifford
Copy link
Contributor

LGTM 👍

@tobybellwood tobybellwood merged commit 0869c65 into main Mar 30, 2022
@tobybellwood tobybellwood deleted the rootless-drush-rsync branch March 30, 2022 05:21
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.

3 participants