[Nottingham] Batch ftp?

Robert Postill robert at grinning-cat.com
Fri Nov 26 09:14:10 GMT 2004


David Aldred wrote:

>Anyone know an easy way of doing this?
>  
>
wget (http://www.gnu.org/software/wget/wget.html) and cron make a 
powerful combination for this type of work.  If you have full control 
you may want to use a tool like CVS or subversion, so you can quickly 
and easily re-create or replicate the entire site.

>I'm thinking of something like a command-line tool which could upload the file 
>to a target directory (then I could create a script to run the command nine 
>times to different directories, with a parameter for the file to be 
>uploaded).
>  
>
What I would suggest is that you want the script closer to you (i.e. on 
your workstation rather than your server).  just because that way you 
can make sure your script isn't tweaked by some miscreant.  Also you can 
use the wonders of bash to allow the use of config files (just in case 
the site structure changes).

Hope that helps.
Robert.




More information about the Nottingham mailing list