April 16, 2015

rsync files from vagrant box to AWS server

I just transferred a directory full of audio files that I didn’t want to check into a project’s Git repository with this command:

rsync -avz -e "ssh -i /home/vagrant/key.pem" ./source-directory user@host.ca:/home/user/destination-directory

notes:

more rsync info and more rsync examples