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

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>