[plug] rsync - how to tell if working?
Harry McNally
harrymc at decisions-and-designs.com.au
Sun Aug 25 21:00:28 WST 2002
On 25 Aug 2002 17:38:17 +0800 Daniel <cottmain at iinet.net.au> wrote:
> Hello All,
> sometimes I'm not sure if rsync is working. Original terminal window has
> not returned to prompt.
> It's still in 'ps aux | grep rsync' which shows processes using around
> 4.5% memory, but 0 cpu so guess it must be dead.
> Will rsync just stall and still hang onto memory?
> I have checked directory size and that's remaining stable (as expected
> for just an update).
> I can just restart it, but could I get around this automatically?
You may, Daniel.
The scripts you are using may (if they are derived from James B's magic rsync)
be writing a log file as they progress in:
/tmp/rsync-au.log (for the debian mirror)
/tmp/rsync-au-us (for the debian-non-US mirror)
Check the script for these on the end of each command.
To view these and check progress you need to look at the end of the log file.
Use:
# tail -f /tmp/rsync-au.log
This will "follow the tail" of the file as it is written. Remember to ^C out of
this at the end of your rsync tho'. I was amazed how much this loaded the CPU. I
had it running on a hidden virtual terminal and wondered why KDE was
"stuttering" along.
No .. I need a faster machine. That'd be the answer and I'm sticking to it :)
cu
Harry
--
linux.conf.au 2003 The Australian Linux Technical Conference
http://linux.conf.au/ 22-25 January 2003 in Perth, Western Australia
Are you a computer angel? http://www.ca.asn.au/
More information about the plug
mailing list