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

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?
 

Heracles

FreeNAS Guru
Joined
Feb 2, 2018
Messages
503
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...
 
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

FreeNAS Wizard
Joined
Aug 16, 2011
Messages
10,790
Top