Oops, forgot ... along the time, command line switches have changed
from one version of mkisofs to another.
And you can burn the ISO image onto a CD, provided it doesn't get
bigger than the capacity of your CD-R media.
The mount command is:
#> mount myisoimagefile.iso /mnt/test -t iso9660 -o loop
#> unmount /mnt/test
Rgds,
Thierry
On Jan 9, 2005, at 2:46 PM, Mike Jeays wrote:
Where are they? They don't seem to exist on my 5.3 system, and I can't
find any trace of them in /usr/ports. pkg_add -r doesn't find them
either.
#!/bin/bash
#
# Backup utility created by Thierry de Villeneuve to
# generate an ISO9660 image to be burned on a CD-ROM
#
# Not Copyrighted material
#
# This software is provided "as is" without warranty of any kind,
whether
# express or implied, including but not limited to any implied warranty
of
# satisfactory quality or fitness for a particular purpose, or of non-
# infringement of any third party's proprietary rights.
#
#
### TVN standard CVS header
#
#
# $Id: create_an_ISO_backup-IMAP.sh,v 1.2 2002/06/07 21:51:27 thierry
Exp $
#
# $Revision: 1.2 $
#
# $Source: /extra/cvs/thierrys/Shell/create_an_ISO_backup-IMAP.sh,v $
#
# $Log: create_an_ISO_backup-IMAP.sh,v $
# Revision 1.2 2002/06/07 21:51:27 thierry
# Tracked in CVS
#
#
#
#
#
# Created TVN, 24-Sep-99
# Upated TVN, 20-Mar-01
#
# mkisofs version 1.13 minimum is required for this script.
#
GOODUSER=root
MENAME=`basename $0`
export DATESTMP=`date '+%Y%m%d'`
export HOSTLONG=`hostname`
export OSNAME=`uname -s`
export MENAME=${MENAME%%.*}
export HOSTSHRT=${HOSTLONG%%.*}
export LOCKFILE=/var/tmp/$MENAME.lock
export LOGFILE=/tmp/$MENAME.log
export
IMAGFILE=${1:-/extra/isoimages/$OSNAME"-"$HOSTSHRT"-
IMAP-"$DATESTMP.iso}
whoiam=$(whoami)
if [ $whoiam != $GOODUSER ]; then
echo Needs to be run only by the user $GOODUSER
exit 1
fi
basedir=${IMAGFILE%/*}
if [ ! -d $basedir ]; then
echo "Error: Non existent $basedir. Quitting"
exit 1
fi
if [ -f $LOCKFILE ]; then
echo "Error: Lock file found."
echo " $MENAME is already running."
echo " if you believe it's not true: delete $LOCKFILE"
exit 1
fi
if ( tty -s ); then
echo "Job is detaching and running in background."
fi
# Detaching to background
(
trap "cd /tmp; rm -f $LOCKFILE 1>&- 2>&-; exit" 0 1 2 3 15
umask 022
touch $LOCKFILE 1>&- 2>&-
memdir=$(pwd)
cd /
# On this machine is loaded mkisofs v 1.13
date "+===start=== Creating `basename $IMAGFILE` on today %c" >
$LOGFILE 2>&1
logger -t "$MENAME[$$]" "Creating ISOimage $IMAGFILE" >/dev/null 2>&1
rm -f $IMAGFILE 2>&- 1>&1
mkisofs -A "Backup system of $HOSTSHRT: $DATESTMP" \
-l -L -J -R -graft-points -hide-rr-moved -hide-joliet-trans-tbl \
-o $IMAGFILE -m core -m lost+found \
-x /var/spool/mail/thierryv -x /extra/imap/thierryv \
$HOSTSHRT/etc/=/etc \
$HOSTSHRT/var/spool/mail/=/var/spool/mail \
$HOSTSHRT/extra/imap/=/extra/imap >> $LOGFILE 2>&1
if [ ! -s $IMAGFILE ]; then
date '+===done=== %c' >> $LOGFILE 2>&1
logger -t "$MENAME[$$]" "Failed creating ISOimage $IMAGFILE"
>/dev/null 2>&1
else
ls -al $IMAGFILE >> $LOGFILE 2>&1
chown nobody:nobody $IMAGFILE >/dev/null 2>&1
date '+===done=== %c' >> $LOGFILE 2>&1
logger -t "$MENAME[$$]" "done" >/dev/null 2>&1
fi
cd $memdir
exit 0
) &
exit 0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"