scripting zfs send & receive, but the script never exits cleanly
c.kworr at gmail.com
Thu Apr 18 17:17:37 UTC 2013
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:
> 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:
Maybe you would find some ideas useful.
Sphinx of black quartz, judge my vow.
More information about the freebsd-questions