Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Quitting shell stops zfs send/receive task

chiknbake

Newbie
Joined
Jan 19, 2020
Messages
3
Hello, CLI/nix newbie and I'm having a issue where running zfs send | receive task through the web interface shell will quit if I exit the shell or the web interface times out. I know that with other nix commands there are options to run the task regardless of if the shell is left open but I couldn't find the option in the zfs man pages. Anyone have any idea how I can keep this task alive?
 

chiknbake

Newbie
Joined
Jan 19, 2020
Messages
3
For ref this is my current command
Code:
zfs send vol1@bu200119 | zfs receive -vF extbu1
 

Heracles

Neophyte Sage
Joined
Feb 2, 2018
Messages
756
Hi,

Typical Unix way to send a task to background is to add & at the end...

You can also put your command in a script and call it from Cron. Cron will keep it running for as long as needed.

There are many options here...
 

chiknbake

Newbie
Joined
Jan 19, 2020
Messages
3
Hi,

Typical Unix way to send a task to background is to add & at the end...

You can also put your command in a script and call it from Cron. Cron will keep it running for as long as needed.

There are many options here...
Worked perfectly, thanks for the help!
 

danb35

Wizened Sage
Joined
Aug 16, 2011
Messages
11,564
Top