From 8cfbd50da16b953a314fa45eda2472551ac5842d Mon Sep 17 00:00:00 2001 From: shimataro Date: Mon, 10 Feb 2020 20:05:55 +0900 Subject: [PATCH] * add example of "rsync via bastion" (#118) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 04a7d56..54dc1db 100644 --- a/README.md +++ b/README.md @@ -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.