Re: rsync -u and --ignore-existing options don't work
From: raver (barbara_ries_at_hotmail.com)
Date: 11/10/03
- Previous message: status_at_rtdos.info: "novel drops unixware but regrets the move by adding LInux to its line"
- In reply to: Bill Marcum: "Re: rsync -u and --ignore-existing options don't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Nov 2003 09:44:36 -0800
Bill Marcum <bmarcum@iglou.com> wrote in message news:<k39o71-mhl.ln1@don.localnet>...
> ["Followup-To:" header set to comp.unix.admin.]
> On 5 Nov 2003 12:44:56 -0800, raver
> <barbara_ries@hotmail.com> wrote:
> > rsync serv: aix 4.3.3 ML11
> > client I am testing with: aix 4.3.3 ML11
> >
> > I have an rsync server supplying files for the /usr/local
> > directory structure. When a client runs rsync it pulls over
> > several /usr/local directories and links are created in
> > /usr/local/bin to where the binaries actually reside.
> >
> > Occasiionally, I want to drop a binary in /usr/local/bin
> > and not have rsync write over it with a link to the rsync
> > distribution. For example, I dropped a newer gzip binary
> > in /usr/local/bin and thought because the client ran rsync
> > with the -u option, it would not write over the newer binary,
> > but it did - and it re-created the symlink over to the rsync
> > distribution binary.
> >
> "rsync -u" is not supposed to overwrite a destination file that is newer
> than the source. Does your "newer" gzip perhaps have an earlier
> timestamp than the "older" version (compiled from older source code)?
> Or perhaps one of the systems has a clock that is way off?
The date on the system is accurate.
Here is the process I am going through to test this:
This is the current gzip on the system
/usr/local/bin/gzip -> ../gnu/gzip-1.2.4/bin/gzip
Here is the timestamp on that file:
>ls -la ../gnu/gzip-1.2.4/bin/gzip
<snip> Mar 06 2001 ../gnu/gzip-1.2.4/bin/gzip
Then I remove the gzip link in /usr/local/bin and drop
in the new binary.
>ls -lad gzip*
<snip> Nov 10 10:36 gzip
The next time rsync runs it recreates the link over to
../gnu/gzip-1.2.4/bin/gzip
Here is the rsync command I am using to pull the files:
rsync -rlogputv --log-format "%o %f %l" <server>::Aix43/${dir} /usr/local
I should have included the above command in my first post.
Thanks!
-bries
- Previous message: status_at_rtdos.info: "novel drops unixware but regrets the move by adding LInux to its line"
- In reply to: Bill Marcum: "Re: rsync -u and --ignore-existing options don't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|