run md5sum
authorCarl Baldwin <cnb@ball.(none)>
Wed, 26 Oct 2005 01:31:17 +0000 (19:31 -0600)
committerCarl Baldwin <cnb@ball.(none)>
Wed, 26 Oct 2005 01:31:17 +0000 (19:31 -0600)
scripts/drive.sh

index dbe6b0b7e074349605af6124c4479e5b05a47ad0..9f17f83c87688d7fab67732d9542b6ba39374793 100755 (executable)
@@ -13,7 +13,7 @@ backupdb="$datadir/backups.db"
 backups="$tmpdir/backup-list.db"
 statusfile="$tmpdir/backup-status.txt"
 isomountdir="/backup/iso-mount"
-isoimage="/backup/iso-mount.iso"
+isoimage="/backup/ISOs/$today.iso"
 restorescript="$scriptsdir/restore.sh"
 
 echo "Creating the iso image in $isoimage"
@@ -55,8 +55,14 @@ cat $backups | rsync $rsyncopts / $isomountdir
 echo "Copying over database and status file"
 cp $statusfile $backupdb $restorescript $isomountdir
 
+mount -o remount -o ro $isomountdir
+# Should be
 # umount $isomountdir
 
+md5sum $isoimage > $isoimage.md5sum
+
 # Burn the iso image
 # dvdrecord [-dummy] [-overburn] -dao speed=8 dev=[ATAPI:]?,?,? iso-image.iso
+
+# Email me
 cat $statusfile | mailx -s "DVD Image available on ball, burn it!" carl@ecbaldwin.net