Skip to content

Instantly share code, notes, and snippets.

View fzlaziz's full-sized avatar
🏠
whatever from home

Faizal Aziz fzlaziz

🏠
whatever from home
  • 18:38 (UTC +07:00)
View GitHub Profile
@fzlaziz
fzlaziz / bash.sh
Created October 29, 2025 03:52
Using rsync to copy data from a private machine that has no public IP, by tunneling through another machine on the same network that does have a public IP. (in this case, public ip port is 2202)
rsync -avz --partial --progress \
-e "ssh -o 'ProxyCommand ssh -p 2202 -W %h:%p root@machine_with_public_ip'" \
root@machine_with_private_local_ip:/root/app/ ~/backup/machine_name