On Monday 23 July 2001 22:47, Kritifile wrote:
> Guillaume Cottenceau wrote:
> > "L.A.Lawless" <[EMAIL PROTECTED]> writes:
> >
> > [...]
> >
> > > As I have a slow modem connection I can't download the entire
> > > cooker,
> >
> > With "rsync", I think this is feasible to maintain an up-to-date
> > Cooker tree if you run rsync in background when you check your mail or
> > browse the web :-).
> >
> > --
> > Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
>
> My ISP disconnects me every 2 hours. It's the price of 'free'
> connection. I've always assumed that rsync wouldn't be usable with
> repeated disconnections. If it is and I keep automatic reconnections
> going, it should be possible to get a full cooker in 48 hours.
> --
> Anna

Rip-off UK, led by BT - first they offer you "unlimited", for which you 
pay, then they keep chucking you off.  However, rsync doesn't mind this.  
If you know you're going to be terminated every 2 hours, as I was too with 
greatXscape, just run your rsync script from something like this (I run it 
from my crontab every 15 minutes from 18:00 till 06:00 Mon-Fri and from 
18:00 Fri - 06:00 Mon:

#!/bin/sh
#------------------------------------------------------------------------------
# Description : Run from crontab to wake-up exited rsync
# File        : rsync-cooker-refresh
# Directory   : /usr/local/bin
# Author      : Peter Ruskin
# Created On  : Sat Nov 4 15:35:54 2000
#------------------------------------------------------------------------------

RSYNCUP=`ps --no-heading -C rsync`
ISTATUS=`netstat -i | grep ppp0`

if [ "$RSYNCUP" != "" ] && [ "$ISTATUS" != "" ] ; then  # rsync and ppp0 
are up
        exit 0                                          # so leave them alone.
fi

if [ "$RSYNCUP" != "" ] && [ "$ISTATUS" == "" ] ; then # rsync up; ppp down
        killall rsync-cooker & > /dev/null
        /usr/local/bin/rsync-cooker &           # your rsync script
        exit 0
fi

if [ "$RSYNCUP" == "" ] ; then                          # rsync down
        killall rsync-cooker & > /dev/null
        /usr/local/bin/rsync-cooker &
        exit 0
fi
#  ends here
-- 
                         Peter Ruskin, Wrexham, Wales.
        Registered Linux User No. 219434 ( see http://counter.li.org/ ).
                Linux Mandrake release 8.0 (Traktopel) for i586,
       kernel 2.4.3-20mdk-win4lin-pnr,  XFree86 4.0.3, patch level 11mdk,
              KDE: 2.1.2,  Qt: 2.3.1.   Uptime 0 hours 28 minutes

Reply via email to