rsync and timestamps of local files
Andrew J. Schorr
aschorr at telemetry-investments.com
Tue Mar 11 03:14:36 EST 2003
On Sat, Mar 08, 2003 at 01:13:17PM -0500, Haisam K. Ido wrote:
> Is there a way to make rsync check the local file system for changes in the files
> prior to it performing a diff with the remote site?
There is no built-in capability to do this in rsync. However, you can
implement this yourself. For example, if you touch a timestamp file
before invoking rsync, then you can use find -newer timestamp to
find files that have changed since the last time you ran rsync.
Then, you can use the --files-from patch to feed the specific list
of files to transfer into rsync. That patch is available here:
http://www.clari.net/~wayne/rsync-files-from.patch
Please search the archives for "files-from" to get more info
on what this patch does.
Cheers,
Andy
More information about the rsync
mailing list