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" (#118)

This commit is contained in:
shimataro 2020-02-10 20:05:55 +09:00 committed by GitHub
parent 5f6cc712bb
commit 8cfbd50da1

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.