Linux.com

Home Learn Linux Linux Tutorials Using rsync to Synchronize a Local and Remote Directory

Using rsync to Synchronize a Local and Remote Directory

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
 

Comments

Subscribe to Comments Feed

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board