On Mon, 20 May 2002, Erik V. Anderson wrote:

> Quoting jasonandmissy at cableone.net:
> 
> > I am writing a perl script that ftp's the contents of a directory a couple of
> > times a day.  I loaded net::ftp and I can ftp by the exact file name.  How
> > would I ftp the whole directory or is mput supported with any perl module?
> 
> One thing you might think about doing is tar/gz'ing the directory before you 
> ftp it.  By doing this, you are killing two birds with one stone:  you are 
> cutting down on the bandwidth needed to transfer the file and you are also 
> doing away with the need to mput or mget.
> -Erik

The problem with this is you are transferring EVERYTHING each time.
Use rsync which only transfers the bits that change. Plus it
automatically compresses on the fly. And it can use ssh too. Check out
the rsync exmaples page for some other cool uses for rsync:
http://www.samba.org/rsync/examples.html