Skip to content

Commit

Permalink
rsync through bastion
Browse files Browse the repository at this point in the history
  • Loading branch information
cherkavi authored Nov 22, 2021
1 parent 6607b55 commit 3fc22ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ rsync -avz -e 'ssh -p 2233' [email protected]:~/test-2020-02-28 /hom
rsync -avz /home/projects/temp/test-2020-02-28 [email protected]:~/test-2020-02-28
# sync local folder to remote ( copy TO remote ) include exclude
rsync -avz --include "*.txt" --exclude "*.bin" /home/projects/temp/test-2020-02-28 [email protected]:~/test-2020-02-28

# sync via bastion
rsync -avz -e 'ssh -Ao ProxyCommand="ssh -W %h:%p -p 22 $PROD_BASTION_USER@$PROD_BASTION_HOST" -i '$EC2_KEY $SOURCE_FOLDER/requirements.txt $EC2_LIST_COMPARATOR_USER@$EC2_LIST_COMPARATOR_HOST:~/list-comparator/requirements.txt
```
```bash
function cluster-prod-generation-sync-to(){
Expand Down

0 comments on commit 3fc22ae

Please sign in to comment.