From: Carl Baldwin Date: Wed, 26 Oct 2005 01:31:17 +0000 (-0600) Subject: run md5sum X-Git-Tag: release-0.4~62 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/%24link?a=commitdiff_plain;h=4904b81497ceb8dc16d334b7fe3cc54b95a4cffe;p=backups%2F.git run md5sum --- 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