I'm doing backup with the command like following:
ionice -c3 tar -ch data | lbzip2 -n 4 | ionice -c3 tee /mnt/smb/out.tar.bz2 > /dev/null
and after that I'm trying to restore data from backup:
lbzip2 -cd -n 10 /mnt/smb/out.tar.bz2 | tar -x
In a hour after start lbzip2 fails due to file integrity error.
/mnt/smb is RAID 1 device on windows machine accessed with SMB protocol.
I suspect errors while writing on disk or sending data with smb but not sure.
So, I've got 2 questions:
- Is it any way to check archive integrity during writing on disk and retry to write block if check fails?
- Any ideas how to find out actual reason of the fail?