From 4904b81497ceb8dc16d334b7fe3cc54b95a4cffe Mon Sep 17 00:00:00 2001 From: Carl Baldwin Date: Tue, 25 Oct 2005 19:31:17 -0600 Subject: [PATCH] run md5sum --- scripts/drive.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/drive.sh b/scripts/drive.sh index dbe6b0b..9f17f83 100755 --- a/scripts/drive.sh +++ b/scripts/drive.sh @@ -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 -- 2.34.1