From: Aman Thind <[EMAIL PROTECTED]>
> This is a typical situation in companies with development teams spread
> around the globe.
> 
> I have FTP servers - in India , US & Switzerland.
> 
> Builds are being made in India and being put on the Indian server.
> 
> Any tips how I could transfer the contents to the remote servers ?
> 
> I've been using Net::FTP for this but sometimes I get a timeout using
> it and so want to move onto something more robust which could be
> automated as well.

What could be more automatable than Net::FTP? I mean you do get the 
status information, you can reestablish the connection, you can ...
It's just a module, your script can do any automation you may wish.

Anyway ... for something like this (though the connection is good 
enough so I did not really have to solve the timeouts much) I created 
a service (it would be daemon if you are using a *nix. We are running 
windows.) driven by an INI file that occassionaly scans the 
directories (using DB_File to store the last-modification time of 
each file) and uploads the new or modified ones.

To make it quicker you can ask the service to ZIP up the files and 
send the archive (we use this mostly for web pages and ASPs). On the 
other side there is another service that takes the ZIP file, 
validates the signature (sent as a separate file containing MD5 hash 
of the ZIP and a secret string) and unpacks the files to wherever we 
need them.

I can get into more details if you are interested, but I' afraid I 
can't give you the programs themselves.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to