Date: 9 Dec 2015 05:42:35 +0500 From: "Editor Scientific Journals" <info@cisjournal.org> To: "questions@freebsd.org" <questions@freebsd.org> Subject: Publication in Scientific Journals
| raw e-mail | index | archive | help
Dear Scientists and Colleagues, It is our pleasure to invite you to send= your valuable contributions in the following Journals: JETCIS (Journal= of Emerging Trends in Computing and Information Sciences) Vol. 6 No. 11;= JST (Journal of Science and Technology) Vol. 5 No. 11; Manuscripts can= be uploaded through online system (by browsing the Journal URL) or in an= electronic form (.pdf or .doc) to: editor.scjournal@gmail.com; Sincerely= Yours, Managing Editor Journal of Science and Technology From owner-freebsd-questions@freebsd.org Wed Dec 9 00:56:32 2015 Return-Path: <owner-freebsd-questions@freebsd.org> Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB5AE9D52EC for <freebsd-questions@mailman.ysv.freebsd.org>; Wed, 9 Dec 2015 00:56:32 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 767E71145 for <freebsd-questions@freebsd.org>; Wed, 9 Dec 2015 00:56:31 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from [24.134.33.72] (helo=workstation) by www81.your-server.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from <gmx@ross.cx>) id 1a6T3V-0006Z0-0a; Wed, 09 Dec 2015 01:56:29 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-questions@freebsd.org, "Patrick Hess" <patrickhess@gmx.net> Subject: Re: Synchronizing directory hierarchies via SFTP References: <13761006.QDN0LtKzYl@desk8.phess.net> <5263162.JaugYyUJYb@desk8.phess.net> <op.x9b54qh0g7njmm@workstation> <24246596.8z5VK3yfqz@desk8.phess.net> Date: Wed, 09 Dec 2015 01:56:25 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" <gmx@ross.cx> Message-ID: <op.x9cp8fpeg7njmm@workstation> In-Reply-To: <24246596.8z5VK3yfqz@desk8.phess.net> User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.98.7/21143/Tue Dec 8 22:35:26 2015) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 09 Dec 2015 00:56:32 -0000 Am .12.2015, 01:13 Uhr, schrieb Patrick Hess <patrickhess@gmx.net>: > Michael Ross wrote: >> Am .12.2015, 00:43 Uhr, schrieb Patrick Hess <patrickhess@gmx.net>: >> > Just came across LFTP, http://lftp.yar.ru. According to the feature >> list, >> > it has support for SFTP and also comes with a "built-in mirror and >> > reverse mirror" option. >> >> lftp is used a lot here to mirror directories via sftp. Would recommend. > > Tried it today, works like a charm. In comparison to csync, I noticed > that the initial directory traversal in particular is a lot faster > with LFTP. And since there's still a big question mark behind sshfs > regarding its stability on FreeBSD, I'll just settle for LFTP and > call it a day. > >> Check out the fine-tuning available with "set -a". > > Wow, that's a lot of stuff to mess up... Maybe some other day. > So far, the defaults seem to work just fine for me. > > Patrick > > PS: Here's the quick'n'dirty Expect script I hacked together, > in case someone has a use for it. > _______________________________________________________________________ > > expect -c ' > set timeout -1; > > spawn lftp -u '"$SFTP_USERNAME"' sftp://'"$SFTP_SERVER"'; > > expect "Passwor\[dt\]:"; > send "'"$SFTP_PASSWORD"'\r"; > > expect "lftp *> "; > send "mirror -v --reverse --dereference --delete --overwrite > --exclude-glob *.swp '"$LOCAL_DIR"' '"$REMOTE_DIR"'\r" > > expect "lftp *> "; > send "quit\r"; > > expect eof; > ' > _______________________________________________________________________ You can put it in a file #!/usr/local/bin/lftp open sftp://user:pass@host mirror -v --reverse --dereference ... and run it either per lftp -f your-file or chmod +x it and go ./your-file As for settings, I'd take a look at least at the settings for net:, you can grep for those set -a | grep net Specifically: net:max-retries 1000 net:reconnect-interval-base 30 net:reconnect-interval-max 600 net:reconnect-interval-multiplier 1.5 means, e. g. for an unreachable server, lftp will try reconnecting every interval*multiplier seconds, until the delay has reached interval-max seconds, and *repeat this max-retries times*. That gives you about a week before the script actually exits. Regards, Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>