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

[cobalt-users] Duplicating files between servers



This is probably a simple script many of you have working somewhere but I cannot find any such item in the archives.

Regularly I have to copy all the files in a web directory from serverA to serverB - I use ftp and mget to do this. I have tried a
little script to do it but cannot get it to automatically input the username and password of the server being logged in to and then
continue and finally quit the session (I know little about scripting).

Basically I want to put this in cron.hourly so I only need to upload the files to one server and have them automatically copied to
the other server every hour - it must work unattended.

Can anyone help or suggest a better way of achieving the same result?

Regards

Brett
Beyond2K - Webmaster
---------------------------------------------
The World's premier mobile phone boutique
With free SMS & free personal No's
www.b2kcomms.co.uk