mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
fix usage of rsync (#218)
This commit is contained in:
parent
53a7c26e5e
commit
bcb314ec07
2 changed files with 7 additions and 3 deletions
|
@ -39,8 +39,8 @@ steps:
|
|||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||
config: ${{ secrets.CONFIG }} # ssh_config; optional
|
||||
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
|
||||
- name: rsync over ssh
|
||||
run: rsync ./foo/ user@remote:bar/
|
||||
- name: rsync over SSH
|
||||
run: rsync -r ./foo/ user@remote:bar/
|
||||
```
|
||||
|
||||
See [Workflow syntax for GitHub Actions](https://help.github.com/en/articles/workflow-syntax-for-github-actions) for details.
|
||||
|
@ -114,7 +114,7 @@ Here are some solutions:
|
|||
I recommend **rsync via bastion**.
|
||||
|
||||
```bash
|
||||
rsync -e "ssh bastion ssh" ./foo/ target:bar/
|
||||
rsync -r -e "ssh bastion ssh" ./foo/ target:bar/
|
||||
```
|
||||
|
||||
It has some advantages over other methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue