Quitting shell stops zfs send/receive task

chiknbake

Cadet
Joined
Jan 19, 2020
Messages
8
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

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

Heracles

Wizard
Joined
Feb 2, 2018
Messages
1,401
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

Cadet
Joined
Jan 19, 2020
Messages
8
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

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Top