1.打包时确认正常
.flag
2.盖戳:指纹
data]# echo 111 >test.txt
data]# md5sum test.txt
1181c1834012245d785120e3505ed169 test.txt
data]# md5sum test.txt >zhiwen.log
data]# cat zhiwen.log
1181c1834012245d785120e3505ed169 test.txt
data]# md5sum -c zhiwen.log
test.txt: 确定
data]# echo 222 >test.txt
data]# 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 &&\
#采集指纹