[SWLUG] batch ftp

linlist2 at nwjones.demon.co.uk linlist2 at nwjones.demon.co.uk
Mon Oct 13 13:57:07 UTC 2003


hagbard at nildram.co.uk wrote:
> On 14:55 Thu 09 Oct     , nat wrote:
> > hi collective knowledge of swlug!
> > 
> > bit of a query, i've got a heap of remote boxes that i need to backup 
> > data from to a server every night. the protocol i've got to use is ftp, 
> > insecure on its own but this is in an ipsec tunnels :)
> > 
> > does anyone know of any readily avaiable scripts of utils for uploading 
> > the whole of a directory and its sub directorys and files easily? i'm 
> > hoping something has already been written and i wont have to hack 
> > something together in perl.
> > 
> > the boxes as a mixture of redhat and debian.
> > 
> > ta in advance,
> > 
> > :)
> > 
> > nat,
> > -- 
> > http://photos.nuqe.net
> > 
> > 
> > _______________________________________________
> > SWLUG Discussion List - Discuss at swlug.org.uk
> > http://list.swlug.org.uk/mailman/listinfo/discuss
> Hi nat,
> 
> ncftp is available which has a non-interactive ftp client designed to be
> called from shell scripts. It has a batch mode and can recursively descend
> an entire directory tree. There's also a perl module Net::FTP but I've
> never used it.
> 
> Just a thought, but if security isn't a problem, might it be easier to use
> rsync? It's smarter than ftp in that it knows not to replace files if they
> haven't changed. It's a pretty standard service so should be readily
> available on your redhat/debian machines.
> 
> Cheers
> 
> Bryn

I've used the perl module very effecttively.
It is simple to use and works well.

Neil Jones- Neil at nwjones.demon.co.uk http://www.butterflyguy.com/
"At some point I had to stand up and be counted. Who speaks for the
butterflies?" Andrew Lees - The quotation on his memorial at Crymlyn
Bog National Nature Reserve






More information about the Swlug mailing list