[ILUG-BOM] Sync and backup with latest modification time
sagar.belure at gmail.com
Sat Apr 16 14:29:17 IST 2011
On Thu, Apr 14, 2011 at 6:15 PM, Binand Sethumadhavan <binand at gmail.com>wrote:
> 2011/4/14 Sagar Belure <sagar.belure at gmail.com>:
> > Pardon my misunderstanding, but it still says that,
> > "....files that have changed in size or in *last-modified time*...."
> > Or, if not rsync I wish to fulfill my requirement.
> What is your requirement then? I thought you wanted to use mtime
> always irrespective of file size. That's precisely what rsync does, as
> per the man page - it says, paraphrasing, IF localsize != remotesize
> OR localmtime != remotetime THEN process the file. That is, IF
> localsize == remotesize AND localmtime == remotemtime THEN (and only
> then) leave the file alone. From the last one, it is evident that if
> the mtimes differ, rsync will process the file irrespective of what
> the sizes are.
Sorry for late reply.
I don't remember, what I was doing during testing, was confused.
It does its job as expected.
Apology for bothering, and thanks Binand for your help.
More information about the Linuxers