-I, --size-only Normally rsync will skip any files that are already the same length and have the same time-stamp. With the -- size-only option files will be skipped if they have the same size, regardless of timestamp. This is useful when starting to use rsync after using another mirroring system which may not preserve timestamps exactly. Excuse me for my ignorance but is this flag referring to the files with same filename on source and destination ? If the destination file has the same size as that of one on source but a different name, would it still skip it ? I need to skip a file if the file on destination has the same name and same size as that of source. Thanks Nishi
On 17 Dec 2001, "Kapoor, Nishikant X" <Nishikant.X.Kapoor@xcelenergy.com> wrote:> Excuse me for my ignorance but is this flag referring to the files with > same filename on source and destination ? If the destination file has > the same size as that of one on source but a different name, would it > still skip it ?At the moment rsync only compares files having the same path relative to whatever base directory, unless you specifically nominate exactly two files.> I need to skip a file if the file on destination has the same name and > same size as that of source.How would it know which file is the relevant one? If the changes are systematic, you might be able to run a pre or post-processing script to move the files to the same name, then do the transfer. Alternatively, have your script run rsync only on the files that need to be transferred. -- Martin
> On 17 Dec 2001, "Kapoor, Nishikant X" > <Nishikant.X.Kapoor@xcelenergy.com> wrote: > > > I need to skip a file if the file on destination has the same name > and > > same size as that of source. > > How would it know which file is the relevant one? > > If the changes are systematic, you might be able to run a pre or > post-processing script to move the files to the same name, then do the > transfer. > > Alternatively, have your script run rsync only on the files that need > to be transferred.[Kapoor, Nishikant] I have a remote source that generates a datafile with a new filename every hour but as it happens, misses a few during the day. I fetch these files through 'ftp' and distribute to my clients using 'rsync'. My clients would like to receive these data files iff they have not received them before i.e. these have a different filename or else they lose the original datetime stamp of these files (the files get a new stamp every time I fetch them from remote source). This is what I was hoping to use --size-only option for. Thanks Nishi