Tags All Entries

rsync

Tags: command-line

Rsync through an intermediate server (2 hop)

   rsync -a -e "ssh -A -J user@intermediate-host" local_path user@destination-host:/remote/path
+-----------------+           +-----------------------+        +----------------------+
|                 |           |                       |        |                      |
|                 |           |  intermediate-host    |        |                      |
|   local host    |           |                       |        |   destination-host   |
|   /local_path   +--------------------------------------------+   /remote/path       |
|                 |           |                       |        |                      |
+-----------------+           +-----------------------+        +----------------------+

Links to this note