🌑

Linhost.info

Note To Self: Copy Files Between Two Systems with Rsync

I needed to copy a couple hundred GBs of data as a precaution from a VPS to another location for temporary storage since I was about to mess with the file system. After reading the man pages and other blogs I guess this was the best I could come up with.

rsync -arz -e ssh /local_path/ remote_user@ip_address:/remote_path/

-a

archive mode

-r

recurse into directories

-z

compress file during the transfer

-e ssh

remote shell SSH

Other parmeters to add:

--partial

keep partially transferred files

--delete

delete extraneous files from destination dirs

, — Apr 26, 2013