Skip to content

Syncing Stuff Using rsync


How To Use Rsync to Sync Local and Remote Directories

To copy files from a remote to a local location over ssh

# rsync options source destination
rsync -av hpc:/hpcdata/vrc/vrc1_data/douek_lab/farmerr2/sandbox/hiv-rv217/results/czid .


-a is to archive. It preserves time stamps and permissions. -v is for verbose

The hpc is the remote location name stored in ~.ssh/config file. We can also use username@ip/hostname instead.