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?
On Sun, 9 Mar 2003 05:13, 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?My understanding is that it does nothing if your file(s) has the same timestamp and size. Unless you use the -I ( --ignore-times ) option. hth Bob
thanks Bob. The timestamp relative to the local first prior to any remote diffing. Is that what you meant? bob parker wrote:> On Sun, 9 Mar 2003 05:13, 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? > > > My understanding is that it does nothing if your file(s) has the same > timestamp and size. Unless you use the -I ( --ignore-times ) option. > > hth > Bob
On Sun, 9 Mar 2003 05:45, Haisam K. Ido wrote:> thanks Bob. > > The timestamp relative to the local first prior to any remote diffing. Is > that what you meant? >I think so. It compares the size and timestamp of your local file with the remote one of the same name of course. If it all matches nothing is done unless you force it. hth Bob> bob parker wrote: > > On Sun, 9 Mar 2003 05:13, 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? > > > > My understanding is that it does nothing if your file(s) has the same > > timestamp and size. Unless you use the -I ( --ignore-times ) option. > > > > hth > > Bob
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