First, create a tiny script called tarsum.sh
Then you can do#!/bin/bash tee >(md5sum > chksum.txt)
tar --use-compress-program tarsum.sh -cvf /dev/st0 mydir > filelist1.txt 2>&1 mv chksum.txt chksum1.txt mt -f /dev/st0 rewind tar --use-compress-program tarsum.sh -tf /dev/st0 > filelist2.txt mv chksum.txt chksum2.txt diff chksum1.txt chksum2.txt diff filelist1.txt filelist2.txt
No comments:
Post a Comment