From owner-freebsd-questions@FreeBSD.ORG Tue Mar 11 16:51:29 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 C368B1065674 for ; Tue, 11 Mar 2008 16:51:29 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id DF5948FC22 for ; Tue, 11 Mar 2008 16:51:28 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 3F2DF3F6260; Tue, 11 Mar 2008 17:51:24 +0100 (CET) Received: from Llea.celt.neu (ron34-3-82-236-236-194.fbx.proxad.net [82.236.236.194]) by smtp5-g19.free.fr (Postfix) with ESMTP id CFB2F3F615B; Tue, 11 Mar 2008 17:51:22 +0100 (CET) Message-ID: <47D6B8C9.70400@laposte.net> Date: Tue, 11 Mar 2008 17:52:25 +0100 From: =?ISO-8859-1?Q?Micha=EBl_Gr=FCnewald?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; fr-FR; rv:1.8.1.12) Gecko/20080305 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Michael Ross References: <47D6A9D0.9050308@laposte.net> <47D6B2DB.5000308@gmx.net> In-Reply-To: <47D6B2DB.5000308@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2008 16:51:29 -0000 Michael Ross a écrit : > Michaël Grünewald schrieb: >> Hi, >> >> I am looking for a program able to make a remote FTP site look like a >> copy of a local dir. I feel as if I were dunce-cap-awards(R) >> nominated, but I really did not find one! >> >> In ports/ftp many programs say they do the reverse, and a few say they >> ``mirror'' without more explanation. I gave a tried to mirror, >> ftpmirror and 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 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=1 --parallel=1 --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. I like this way, thank you, -- Michaël