1.打包时确认正常
.flag
2.盖戳:指纹
# echo 111 >test.txt
# md5sum test.txt
1181c1834012245d785120e3505ed169 test.txt
# md5sum test.txt >zhiwen.log
# cat zhiwen.log
1181c1834012245d785120e3505ed169 test.txt
# md5sum -c zhiwen.log
test.txt: 确定
# echo 222 >test.txt
# md5sum -c zhiwen.log
test.txt: 失败
md5sum: 警告:1 个校验和不匹配
touch /backup/$IP/bak_nfs01_$(date +%F).flag &&\
#创建flag
find /backup/ -type f -name "*.tar.gz"|xargs md5sum
>/backup/$IP/bak_nfs01_$(date +%F).flag &&\
#采集指纹