I am trying to extract files from a tape device using
tar and am getting IO errors:
tar: /dev/nst0: Cannot read: Input/output error
tar tries to continue anyway:
tar: Skipping to next header
Is there a way to tell
tar to exit directly after the first occurrence of the
Cannot read error? I worked my way through the man pages and the
tar manual, but could not find anything like that. Or is there a way to catch the error message in the calling shell and kill
tar from outside?
The OS is Ubuntu 16.04 with kernel 4.4.0-38 and
tar is GNU tar 1.28.