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"
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