Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2013 12:35:33 -0400
From:      "Brian Gold" <bgold@simons-rock.edu>
To:        <freebsd-questions@freebsd.org>
Subject:   scripting zfs send & receive, but the script never exits cleanly
Message-ID:  <0d5e01ce3c52$bf74c9d0$3e5e5d70$@simons-rock.edu>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0d5e01ce3c52$bf74c9d0$3e5e5d70$>