2 Copyright (C) 2009-2010 Bacula Systems SA
4 Please see the file LICENSE concerning the terms of the license,
10 THIS ASSUMES THAT YOU ALLREADY CREATED YOUR USB KEY (README.usb)
12 AND SAVED YOUR DATA TO IT (README.save)
15 ---------------------------RESTORING A BROKEN MACHINE--------------------------------
17 -- THE ADDRESS OF THE FILE DAEMON AND STORAGE DAEMON MUST BE
18 THE IP ADDRESS AND NOT THE HOSTNAME IN THE BACULA-DIR.CONF
19 OF THE MACHINE CONTAINING THE DIRECTOR
22 -boot on the usb stick (if your computer's bios doesn't support usb booting, use the provided boot-cd)
23 (available at http://bacula.org/downloads/cd-boot-liveusb2.iso )
24 (the boot cd works with vmware but not virtualbox)
26 -open a terminal as root
28 -execute the start_bacula_rescue script ( in /home/ubuntu/start_bacula_rescue)
33 -it will prompt you for the client you want to restore
35 -it will show you all the availaible disk devices (followed by previously
36 /dev/XXX) ( this is to ensure the drives didn't swap names)
38 -choose the disks you want to restore
40 (e.g /dev/sda will repartition /dev/sda, reformat ALL partitions
41 (that were mounted at the time of backup and the call the bacula
42 client to repopulate the data)
44 ( /dev/sda1 would only reformat /dev/sda1 and then call the bacula
45 client to repopulate the data)
47 -if you didn't provide a bconsole.conf file at the time of backup it will
48 again prompt you for one (if you don't provide it you will have to run
49 the restore job on another machine)
53 -------------------------------------------------------------------------------------
54 ---------------BE CAREFULL, IF YOU DIDN'T CHOOSE YOUR ROOT DISK (e.g. /dev/sda1)
55 YOU MUST ONLY RESTORE THE MOUNT POINT OF YOUR CHOOSEN VOLUMES,
56 OTHERWISE YOU WOULD FILL UP THE USB KEY------------------------------
58 (e.g. I restore the drive sdb5 which was mounted on /mnt/data , I must only restore /mnt/data
61 ----------------------------------------------------------------------------------------
63 -so restore your files with bconsole (or bat, bweb on another machine)
65 -when you are all done, press ok
67 -the script will now look for a /boot/grub directory on the
68 restored disks and try to execute grub-install
70 (if you have lilo or some other boot loader you will have to restore them
73 ---et voilĂ -----------YOU JUST RECOVERED YOUR MACHINE
75 ---------------------------------------------------------------------------------------------
78 --------------------------RUNNING SCRIPTS MANUALLY---------------------------------------------
80 - If you look into the clients/ directory you will find your
83 - If for some reason you want to execute a script manually YOU MUST
85 cd /media/bs-rescue/bacula-rescue
87 cp -r clients/(clientname)/* scripts/working ###this is important only take the dirs that are inside
88 #### the client directory (they are named
89 ###### scripts and diskinfo)
90 cd scripts/working/scripts
92 -- execute your scripts here
95 -------------------------------------------------------------------------------------------------------