1
0
Fork 0
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"

This commit is contained in:
shimataro 2020-02-10 20:02:33 +09:00
parent 5f6cc712bb
commit d1c9ec8542
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

View file

@ -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.