Vivek Kumar wrote:
>
> I was using rsync to copy files locally and over the network. I want to
> copy only those files which are touched or updated. But whenever I run
> rsync it copies all the files. IF i run immediately it doesn't copy any
> file.
It is very likely that you are not using either -a or -t options to
rsync. Please use -a. Here is what the man page says about -t.
This tells rsync to transfer modification times
along with the files and update them on the remote
system. Note that if this option is not used, the
optimization that excludes files that have not been
modified cannot be effective; in other words, a
missing -t or -a will cause the next transfer to
behave as if it used -I, and all files will have
their checksums compared and show up in log mes-
sages even if they haven't changed.
The difference between -a and -t is that -a preserves symlinks and
basically all attributes. Generally you want -a.
My best guess...
Bob
Attachment:
pgpPzpcA4s7wU.pgp
Description: PGP signature