in reply to expect w/scp

I would like to second tadman's recommendation of configuring ssh so you can lose the passwords in scripts. In addition I would recommend using rsync over scp. With ssh you can handle a lot of potential failure conditions by just saying, "I will syncronize ever X minutes anyways, so it doesn't mastter too much if I bomb out whenever there is a problem..."

That facility can be very useful.