From owner-freebsd-questions@FreeBSD.ORG Tue Mar 11 18:24:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A33CA106566C for ; Tue, 11 Mar 2008 18:24:50 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by mx1.freebsd.org (Postfix) with ESMTP id 264148FC18 for ; Tue, 11 Mar 2008 18:24:49 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.14.2/8.14.2) with ESMTP id m2BI4LM2022274; Tue, 11 Mar 2008 13:04:21 -0500 (EST) (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost) by fledge.watson.org (8.14.2/8.14.2/Submit) with ESMTP id m2BI4LU0022271; Tue, 11 Mar 2008 14:04:21 -0400 (EDT) (envelope-from doug@fledge.watson.org) Date: Tue, 11 Mar 2008 14:04:21 -0400 (EDT) From: doug To: Kelvin Woods In-Reply-To: <5920.204.104.55.243.1205254143.squirrel@webmail.zednought.net> Message-ID: <20080311135549.K5563@fledge.watson.org> References: <47D6A9D0.9050308@laposte.net> <47D6B2DB.5000308@gmx.net> <5920.204.104.55.243.1205254143.squirrel@webmail.zednought.net> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="621616949-1756029767-1205258661=:5563" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (fledge.watson.org [127.0.0.1]); Tue, 11 Mar 2008 13:04:21 -0500 (EST) Cc: freebsd-questions@freebsd.org Subject: Re: Looking for a FTP sync'er suggestion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: doug@safeport.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2008 18:24:50 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --621616949-1756029767-1205258661=:5563 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 11 Mar 2008, Kelvin Woods wrote: > On Tue, March 11, 2008 16:27, Michael Ross wrote: >> Micha=EBl Gr=FCnewald schrieb: >>> Hi, >>> >>> I am looking for a program able to make a remote FTP site look like a c= opy=20 >>> of a local dir. I feel as if I were dunce-cap-awards(R) nominated, but = I=20 >>> really did not find one! >>> >>> In ports/ftp many programs say they do the reverse, and a few say they= =20 >>> ``mirror'' without more explanation. I gave a tried to mirror, ftpmirro= r and=20 >>> ftpsync (among others), all of them broke or failed to be useful. >>> >>> >>> I need this to publish a web site on a space allocated to me by my ISP,= I am=20 >>> writing a script that automates publication, and at the very end, I >>> noticed the key-piece was missing! >> >> I usually do it with lftp, in a script like: >> >> [michael@serafina ~]$ cat work/websites/foobar/lftp.upload >> #!/usr/local/bin/lftp -f >> debug 3; >> set dns:fatal-timeout 30; >> set ftp:ssl-allow true; >> open -u username,password host; >> put upload/updating.php -o /index.php || exit 1 >> mirror --verbose=3D1 --parallel=3D1 --delete --reverse \ >> --exclude ".htaccess" --exclude ".htpasswd" \ >> --exclude "index.php" --exclude "updating.php" \ >> upload / || exit 1 >> put upload/index.php -o /index.php || exit 1 >> >> Then I'll call ./lftp.upload and be done. >> >> Michael >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> > > I'd support this suggestion as well. Using lftp (from the ports tree) > requires nothing more that an FTP server at the remote end (i.e. the > ISP). It can "mirror" in both directions, i.e. client -> server and > server -> client. > lftp is neat and new (to me). It reminds me of the advice given by Evi Neme= th=20 gave in the first Unix book I read some years ago, paraphrased as, "look at= all=20 the man pages every so often". If the ISP supports ssh, putting a key on the server allows easy update for= a=20 few files: scp [-r] [path-to-file/]newfile.html id@isp.server.com:/path-to-html/ --621616949-1756029767-1205258661=:5563--