From owner-freebsd-questions@FreeBSD.ORG Thu Apr 18 16:45:20 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8B99F405 for ; Thu, 18 Apr 2013 16:45:20 +0000 (UTC) (envelope-from bgold@simons-rock.edu) Received: from hedwig.simons-rock.edu (hedwig.simons-rock.edu [208.81.88.14]) by mx1.freebsd.org (Postfix) with ESMTP id 4728DB65 for ; Thu, 18 Apr 2013 16:45:20 +0000 (UTC) Received: from behemoth (behemoth.simons-rock.edu [10.30.2.44]) by hedwig.simons-rock.edu (Postfix) with ESMTP id DA1E6129 for ; Thu, 18 Apr 2013 12:35:29 -0400 (EDT) From: "Brian Gold" To: Subject: scripting zfs send & receive, but the script never exits cleanly Date: Thu, 18 Apr 2013 12:35:33 -0400 Message-ID: <0d5e01ce3c52$bf74c9d0$3e5e5d70$@simons-rock.edu> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac48Up6KD/Nx6WI2S0yeLXhrbxOPUQ== Content-Language: en-us Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 16:45:20 -0000 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. Thanks, Brian