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

Support remote shell override for rsync #9

Open
sohoffice opened this issue Jun 19, 2019 · 0 comments
Open

Support remote shell override for rsync #9

sohoffice opened this issue Jun 19, 2019 · 0 comments
Milestone

Comments

@sohoffice
Copy link
Owner

rsync can benefit from an alternative remote shell, like for example using a control master ssh connection.

We should allow user to specify remoteShell under profiles > connection. This will be used as the -e parameter when invoking rsync. For example:

rsync -av -e '{{remoteShell}}' --exclude-from=.piaasignore --delete --copy-links . [email protected]:~/src

Control Master SSH Scenario:

  1. We could have opened a control master connection with ssh -nNf -o ControlMaster=yes -o ControlPath="$HOME/.ssh/.control-%L-%r@%h:%p" user@host
  2. Specify remoteShell as ssh -o 'ControlPath=$HOME/.ssh/control-%L-%r@%h:%p'
  3. The control master connection can be terminated with ssh -O exit -o ControlPath="$HOME/.ssh/.control-%L-%r@%h:%p" user@host
@sohoffice sohoffice added this to the v0.2.0 Optimize sync speed milestone Jun 19, 2019
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

No branches or pull requests

1 participant