HPC Documentation

Guides, references, and tutorials for the WCM cluster

rsync

Rsync 

rsync is a command-line utility for fast, incremental file transfer and synchronization. It is ideal for advanced users or automated scripts moving data between local systems and HPC clusters.

Key Features: Efficient (transfers only changed parts of files), preserves permissions, timestamps, and links, and is available on all SCU clusters.

Network Requirements

To use rsync with a remote cluster, you must have SSH access. If you are not on the campus network, you must connect to the Weill VPN first.

How to Use Rsync

For long-running transfers, we highly recommend running rsync inside a screen session to ensure the process continues even if your connection drops.

Copy Local Files to Remote (Upload)

From your terminal, use the following syntax:

rsync -av laptopFromDir/ loginid@scu-login01.med.cornell.edu:~/loginToDir/

⚠️ The Trailing Slash Rule:

  • dir/ = copy the contents of the directory
  • dir = copy the directory itself

Copy Remote Files to Local (Download)

rsync -av loginid@scu-login01.med.cornell.edu:~/loginToDir/ laptopFromDir/

Copy a Directory Locally

rsync -a /path/to/source/directory/ /path/to/destination/directory/

Common Rsync Flags

FlagDescriptionExample
-aArchive Mode: preserves attributes like permissions and timesrsync -a src/ dest/
-vVerbose: provides detailed terminal output during transferrsync -av src/ dest/
-zCompress: compresses data data during transfer to save bandwidthrsync -az src/ dest/
-PShows dynamic progress bars and allows resuming interrupted transfersrsync -aP src/ dest/
-nDry Run: previews files that would transfer without writing changesrsync -anv src/ dest/
--deleteRemoves files from target directory that do not exist in sourcersync -a --delete src/ dest/
--updateSkips updating files that are newer on the target systemrsync -av --update src/ dest/

SCU High-Performance Computing Technical Documentation — 2026.