3 # Script to make a Bacula "rescue" disk
12 Usage: make_rescue_disk
13 -h, --help print this message
14 --make-static-bacula make static File daemon and add to diskette
15 --copy-static-bacula copy static File daemon to diskette
16 --copy-etc-files copy files in etc list to diskette
26 # Process command line options
28 for option in "$@" ; do
45 echo "Unknown option specified: $option"
53 echo "Place a blank diskette in your floppy drive."
54 echo "It will be formatted and all data will be lost."
56 echo -n "Press return when ready: "
58 umount $device 2>&1 >/dev/null
65 mount $dev $device 2>&1 >/dev/null
67 if [ x$make_bacula = "xyes" ] ; then
71 if [ x$copy_bacula = "xyes" -a ! -e bacula-fd ] ; then
73 echo "bacula-fd not found. If you want Bacula on this"
74 echo "rescue disk please run \"make_static_bacula\" first."
75 echo "Continuing anyway ..."
80 echo "Stripping and compressing Bacula"
86 echo "Copying files to $device"
89 if [ x$copy_etc = "xyes" ] ; then
90 echo "Tarring /etc files to $device"
91 tar --create --gzip --file $device/etc.gz --files-from backup.etc.list
94 if [ x$have_bacula = "xyes" ] ; then
95 rm -f bacula-fd.gz bacula-fd.conf
98 if [ $mounted = 0 ] ; then