84
21
I have written a little script that tars and compresses a list of directories + files.
The script appears to run succesfully, in that a useable .tar.gz file is created after the script runs.
However, I get this annoying message after the script finishes:
tar: Exiting with failure status due to previous errors
I do not see any error messages whilst the script is working, and like I said, the produced file can be uncompressed with no warnings/errors. Since I am using this as part of my backup, I want to make sure that I am not ignoring something serious.
What are the possible reasons that this error/warning message is being produced - and can I safely ignore it?. If I cant ignore it, what are the steps to diagnose and resolve the error?
I am running on Ubuntu 10.0.4
yes using sudo fixed the issue – whizcreed – 2015-11-17T12:44:05.250
8+1 for the suggestion (I was using the 'verbose' option previously). I found that there was a permission issue on at least one of the files. At least now I know how to resolve this. many thanks – morpheous – 2010-07-29T14:26:18.540
ditching the -v flag is great advice and helped me solve my problem. 'verbose' obscures the cause of the failure behind a wall of text – scottyseus – 2019-07-01T15:43:18.433