Using rsync to Synchronize a Local and Remote Directory

98

Recently I had moved my blog from WordPress to a custom python script that generates static HTML pages. After generating files I need to copy them to my web servers. While it is easy enough to FTP or SCP the files from my local machine to the remote web servers. I am looking for a little more elegant and automated solution. For that reason I have chosen to use the rsync command.

What is rsync

In the simplest terms rsync is a tool that copies files from one place to another.

In a more detailed explanation rsync does more than just copy files, it will read the source and destination directories and only copy the files that are new or updated. This makes rsync perfect for copying my HTML files; as not every file will be changed.

 

Read more at bc-log