Working with rsync on AWS Ubuntu

I’m migrating to a new AWS instance and so I need to bring a bunch of directories with me. I could do it the easy (and slow) way and copy them to my computer then to the new server. This would be drag and drop using SFTP (automatically brought up when I SSH into my server on MobaXterm). Currently this is how I upload a web page into an Apache web directory..

The more standard way using Linux command line is by rsync. I will use a command like:

sudo rsync --dry-run --delete -azvv -e ssh /home/path/folder1/ remoteuser@remotehost.remotedomain:/home/path/folder2

Continue reading “Working with rsync on AWS Ubuntu”