> On Fridayen den 9 November 2001 10.58, Borsenkow Andrej wrote:
> > > On Fridayen den 9 November 2001 10.28, Borsenkow Andrej wrote:
> > > > ftp.uninett.no - @ERROR: chroot failed
> > >
> > > this one works for me.
> >
> > Yes, but no more as
> >
> > rsync rsync://ftp.uninett.no/Mandrake-devel/
> >
> > but as
> >
> > rsync rsync://ftp.uninett.no/Mandrake-new/Mandrake-devel/
> >
> > These f*** mirror maintainers. We are supposed to have virtual
> > directories in rsync exactly to hide real layout :(
> 
> Yes, I agree totally, I wrote about this yesterday, and it's becoming
a
> pain
> in the *ss. I'm using the "troels.rsync5.pl" script which works very
well
> except for erasing all packages when these damn mirror maintainers
can't
> get
> it right.
> 
> Maybe a person with great perl skills could fix the script to not
erase if
> the mirror is f*cked up?
> 

[root@cooker root]# grep rsync_options ~/bin/sync-cooker
        my $rsync_options = '--delete';


man rsync:

...
      -b, --backup                make backups (default ~ suffix)
          --backup-dir            make backups into this directory
...
          --max-delete=NUM        don't delete more than NUM files
...

You got an idea? :-)

Actually, max-delete is good; using this script, you never delete way
too many files (as rpms are renamed). May be it makes sense to use it by
default.

-andrej

Reply via email to