Vannkorn

Full Stack WordPress Developer

Close

Using rsync to Upload Large Files to the Remote Server

Using FTP is old school and unprofessional. When you need to upload a database file or large zip files from your local machine to the remote server, for example, using rsync can help.

Ads: Register now via this link to receive $100 credit from Vultr

I once met a situation when I could not upload a large compressed css file to the remote server via any ftp softwares either FileZilla or Cyber Duck.

I could not figure out why even I’d tried to increase timeout setting, reduce the number of connection, etc. still it ends up the same.

Then I decided to transfer the file via SCP. But it was too slow as SCP always verifies its credentials at every connection established.

The other possible method is to use rsync upon this recommendation.

The syntax is simple:

rsync -avzh style.css vkhost@192.168.1.254:/home/vkhost

Where /home/vkhost is the destination directory to have my style.css file moved to. It was done in just a blink of an eye for the file over 175kb.

Leave a Reply

Your email address will not be published. Required fields are marked *