Moving stuff around the web with Rsync
After marvelling at the wonders of FTP, and the ability to move large and numerous files around the internet, you quickly realise there might be a better way. One which syncs files quickly and efficiently between servers and is a little more intelligent. Well there is - Rsync and it is an excellent tool in the web developers tool box, on Linux of course.
Now, I now there are even better tools than rsync for deploying, Git for instance, that harness the power of version control. And I use those too. It's just for moving a large Wordpress images folder from one server to another, or a large MySQL dump, I've found Rsync to be incredibly useful.
To move from my local up to a certificate SSH enabled server, excluding node and git folders:
rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress --exclude 'node_modules' --exclude '.git' ./ ssh_user_name_here@ip_address_here:/srv/www/etc/etc/here/
:: Created: 11th Oct '14 ~ Last updated: 13th Oct '14