Don't let backups fail on soft errors from tar
Tar will give an exit status 1 when some files differ from the versions on disk. For instance, when during a backup a file gets truncated, tar will exit with status 1, after completing the rest of the backup.
https://www.gnu.org/software/tar/manual/tar.html#SEC33
Please let the backup fail only when tar exits with status > 1.
Please sign in to leave a comment.
Comments
1 comment