From owner-freebsd-questions@FreeBSD.ORG Thu Apr 18 17:17:37 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5C4C118B for ; Thu, 18 Apr 2013 17:17:37 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id DE5A3D8D for ; Thu, 18 Apr 2013 17:17:36 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id fq13so1691554lab.35 for ; Thu, 18 Apr 2013 10:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=AtDTrj+6/xON3wn9cdPCW9MylI20lLcdVkF3+5pP0pg=; b=LhGbIwxKMEWCBpyFVGP/Iu1hyBOqnAdknkZBEEDvxKGAEPXod4u/gWr5QHj8mbkGb3 LCIVgmCEIiVgOiXazHBcXbhMbO/oZM/l47dHnqdPBo+2UPJEQe86dhNgQEVKmdc+O/mY v/TYK+TV76uMbURwZweinYtZgSPCGoPEbVrUx8fXmHr1JvWxUL76aZs2PL/J5rF/vICm 7xlW6tAcx9Ph7PgHKt7Wok0ueH1NYBQHT4v7at+RnZ1aC9yhAVoEU8/8Yh+ru4oJaaEG cTO92PB4mU9lzCcTDi32NSrlt/crJEHsYnfiM4bg+Y0/fmoT7TRycaeGkcsbWMyqqJ91 wonQ== X-Received: by 10.112.163.6 with SMTP id ye6mr6251357lbb.59.1366305455833; Thu, 18 Apr 2013 10:17:35 -0700 (PDT) Received: from [192.168.1.128] ([91.196.229.122]) by mx.google.com with ESMTPS id a9sm4706111laf.2.2013.04.18.10.17.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 10:17:35 -0700 (PDT) Message-ID: <51702AAE.50309@gmail.com> Date: Thu, 18 Apr 2013 20:17:34 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17 MIME-Version: 1.0 To: Brian Gold , freebsd-questions@freebsd.org Subject: Re: scripting zfs send & receive, but the script never exits cleanly References: <0d5e01ce3c52$bf74c9d0$3e5e5d70$@simons-rock.edu> In-Reply-To: <0d5e01ce3c52$bf74c9d0$3e5e5d70$@simons-rock.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2013 17:17:37 -0000 18.04.2013 19:35, Brian Gold: > Hi all. Quick question for you. I've got a pair of freebsd 9 systems running > zfs. i've got my primary system doing ZFS SEND each night to my secondary > system for backups. I'm using a script I wrote to automate the process. I'm > passing the zfs send & receive through gnetcat as a buffer which increases > the speed of the transfer quite a bit. The script is available here: > http://pastebin.com/2suzs3wP > > > > My problem is, when I run this script it syncs just fine, but it never > actually ends. It just sits there until I kill it. I would love to have this > run as a scheduled cron job, but until I can get this to exit cleanly when > it is done, that won't be an option. > > > > Here is the output I get when I run this: http://pastebin.com/q8hRzuVv > > > > Would really appreciate any advice you may have. If anyone has a > cleaner/more efficient way of doing these incremental send/receives, that > would be great too. I've done the same with this script: https://github.com/kworr/zfSnap/blob/master/xPERIODICx_zfSync.sh Maybe you would find some ideas useful. -- Sphinx of black quartz, judge my vow.