Document of tar
http://www.gnu.org/software/tar/manu.../Synopsis.html
Possible exit codes of GNU tar are summarized in the following table:
0
‘Successful termination’.
1
‘Some files differ’. If tar was invoked with ‘--compare’ (‘--diff’, ‘-d’) command line option, this means that some files in the archive differ from their disk counterparts (see section Comparing Archive Members with the File System). If tar was given ‘--create’, ‘--append’ or ‘--update’ option, this exit code means that some files were changed while being archived and so the resulting archive does not contain the exact copy of the file set.
2
‘Fatal error’. This means that some fatal, unrecoverable error occurred.