Archive for August 10th, 2007

RSync Hangs when rsyncing via SSH

I’ve got an automatic backup script that makes a daily copy of my server to an offsite location. I use rsync for this. I’ve noticed last week that nothing the sync never completed…

Btw. The offsite location (a SuSE Linux 9.3 server) initiates and rsync over SSH with my FreeBSD 6.2 server.

After some debugging I noticed rsync is hanging in the middle of the backup!?
I found several articles on the internet about this problem. But I’m still searching for a solutions for my problem… :(

Well every time it hangs on:

/somepath/wordpress/xmlrpc.php is uptodate

Wordpress.. Coincidence?!? ;-)

11 august 2007 - Well it was a false alarm. Rsync is just extremely slow… :-(

Prototype automatic Spinner

I found the following code on the internet. By using this code, a spinner is showed automaticly if an Ajax request is running. Very nice!

// registreer een algemene spinner
Ajax.Responders.register({
  onCreate: function() {
  if (Ajax.activeRequestCount > 0)
    Element.show(’spinner’);
  },
  onComplete: function() {
  if (Ajax.activeRequestCount == 0)
    Element.hide(’spinner’);
  }
});

Didn’t know prototype had this global register method. I should take a better look at the API!