Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Run rsync based on time difference between local file and server file



On Fri, Nov 11, 2011 at 05:52:30PM +0900, Charles Muller wrote:
> 
> I was thinking that I might be able to automate this by having a script 
> that compares the time stamps of a designated file on the server with a 
> designated local file, and then depending on if there is a difference, 
> and if so, which way, the appropriate rsync routine would start up.

So you want to
- capture timestamps of files/directories on both sides
- carry that info to the remote side
- use it to see what needs to be transferred

That is the default mode rsync operated with, I think.  A different one
uses checksums.


> Does this make sense? Or is there a simpler way to do it?

Using rsync directly does the same from what I see.
What of the rsync behaviour do you want to improve?


Christian


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links