Re: Fast and Slow sync



On Sun, 17 Oct 1999, Vadim Strizhevsky wrote:

> For testing purposes, is there quick & dirty way to force a SlowSync
> of certain database? Even if I just did sync immediately before?

Change the host id using the capplet. Or using this script : (you're not
the first to want to do that...)

#! /bin/bash
CFG=~/.gnome/gnome-pilot.d/gpilotd
HOSTID=`cat $CFG|grep sync_PC|sed 's/sync_PC_Id=//'`
NEWHOSTID=$[$HOSTID + 1]
echo $NEWHOSTID
mv $CFG $CFG.tmp
SEDSTRING=s/$HOSTID/$NEWHOSTID/
cat $CFG.tmp | sed $SEDSTRING > $CFG
rm $CFG.tmp

/dev/eskil
---



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]