Date: Thu, 18 Apr 2013 20:17:34 +0300 From: Volodymyr Kostyrko <c.kworr@gmail.com> To: Brian Gold <bgold@simons-rock.edu>, freebsd-questions@freebsd.org Subject: Re: scripting zfs send & receive, but the script never exits cleanly Message-ID: <51702AAE.50309@gmail.com> In-Reply-To: <0d5e01ce3c52$bf74c9d0$3e5e5d70$@simons-rock.edu> References: <0d5e01ce3c52$bf74c9d0$3e5e5d70$@simons-rock.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51702AAE.50309>