[Gllug] Mirroring a local dir to ftp (curl?)

Alain Williams addw at phcomp.co.uk
Tue Jun 14 16:55:44 UTC 2005


On Tue, Jun 14, 2005 at 05:53:45PM +0100, Morris, Simon wrote:
> Hello,
> 
> I have a local directory that I'd like to mirror up onto a ftp server as part of a cron script.
> 
> Looking at the available tools (The server is OS X) curl seems the best bet, but doesn't seem to do recursive uploads.
> 
> So far I've come up with 
> 
> find /path/to/dir -exec curl -T {} \;
> 
> But its horribly inefficient.
> 
> Does anyone have a better idea (I know someone will have) either using curl or another tool.

Use rsync.

-- 
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256

#include <std_disclaimer.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20050614/7e1c633a/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list