Skip to content

Instantly share code, notes, and snippets.

@mamedshahmaliyev
Created August 26, 2021 11:22
Show Gist options
  • Save mamedshahmaliyev/0e213e707e920c3e29c6de9f46cba11b to your computer and use it in GitHub Desktop.
Save mamedshahmaliyev/0e213e707e920c3e29c6de9f46cba11b to your computer and use it in GitHub Desktop.
rsync remote to remote
ssh -R 5000:to_ip:22 root@from_ip 'rsync -e "ssh -p 5000" -vuar from_path/* localhost:to_path'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment