mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* add example of "rsync via bastion" (#118)
This commit is contained in:
parent
5f6cc712bb
commit
8cfbd50da1
1 changed files with 5 additions and 0 deletions
|
@ -99,6 +99,11 @@ Here are some solutions:
|
|||
### Which one is the best way for transferring files, "direct SCP/SFTP/rsync" or "SCP/SFTP/rsync via bastion"?
|
||||
|
||||
I recommend **rsync via bastion**.
|
||||
|
||||
```bash
|
||||
rsync -e "ssh bastion ssh" ./foo/ target:bar/
|
||||
```
|
||||
|
||||
It has some advantages over other methods:
|
||||
|
||||
* "Rsync via bastion" doesn't require to update workflow files and `secrets` even if it is necessary to transfer files to multiple servers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue