Be sure to capture the PID of netcat when you background it and make a cleanup method to kill it if there's any errors and the backup fails.
Be sure to capture the PID of netcat when you background it and make a cleanup method to kill it if there's any errors and the backup fails.