3 # Script to make a Bacula "rescue" disk
11 Usage: make_rescue_disk
12 -h, --help print this message
13 --make-static-bacula make static File daemon and add to diskette
14 --copy-static-bacula copy static File daemon to diskette
15 --copy-etc-files copy files in etc list to diskette
25 # Process command line options
27 for option in "$@" ; do
44 echo "Unknown option specified: $option"
52 echo "Place a blank diskette in your floppy drive."
53 echo "It will be formatted and all data will be lost."
55 echo -n "Press return when ready: "
57 umount $device 2>&1 >/dev/null
64 mount $dev $device 2>&1 >/dev/null
66 if [ x$make_bacula = "xyes" ] ; then
70 if [ x$copy_bacula = "xyes" -a ! -e bacula-fd ] ; then
72 echo "bacula-fd not found. If you want Bacula on this"
73 echo "rescue disk please run \"make_static_bacula\" first."
74 echo "Continuing anyway ..."
79 echo "Stripping and compressing Bacula"
85 echo "Copying files to $device"
88 if [ x$copy_etc = "xyes" ] ; then
89 echo "Tarring /etc files to $device"
90 tar --create --gzip --file $device/etc.gz --files-from backup.etc.list
93 if [ x$have_bacula = "xyes" ] ; then
94 rm -f bacula-fd.gz bacula-fd.conf
97 if [ $mounted = 0 ] ; then