]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/usb/README.restore
Add new usb rescue key code
[bacula/rescue] / rescue / linux / usb / README.restore
1
2 Copyright (C) 2009-2010 Bacula Systems SA
3
4 Please see the file LICENSE concerning the terms of the license,
5 copying and such.
6
7
8
9
10 THIS ASSUMES THAT YOU ALLREADY CREATED YOUR USB KEY  (README.usb)
11
12 AND SAVED YOUR DATA TO IT (README.save)
13
14
15 ---------------------------RESTORING A BROKEN MACHINE--------------------------------
16
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
20
21
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)
25
26 -open a terminal as root
27
28 -execute the start_bacula_rescue script ( in /home/ubuntu/start_bacula_rescue)
29
30 -choose restore
31
32
33 -it will prompt you for the client you want to restore
34
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)
37
38 -choose the disks you want to restore 
39
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)
43         
44      ( /dev/sda1 would only reformat /dev/sda1 and then call the bacula
45        client to repopulate the data)
46
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)
50
51 -bconsole will launch
52
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------------------------------
57
58 (e.g. I restore the drive sdb5 which was mounted on /mnt/data , I must only restore /mnt/data
59    with bacula)
60
61 ----------------------------------------------------------------------------------------
62
63 -so restore your files with bconsole (or bat, bweb on another machine) 
64
65 -when you are all done, press ok
66
67 -the script will now look for a /boot/grub directory on the
68  restored disks and try to execute grub-install
69
70   (if you have lilo or some other boot loader you will have to restore them
71    manually)
72
73 ---et voilĂ -----------YOU JUST RECOVERED YOUR MACHINE
74
75 ---------------------------------------------------------------------------------------------
76
77
78 --------------------------RUNNING SCRIPTS MANUALLY---------------------------------------------
79
80 - If you look into the clients/ directory you will find your
81   clients directories
82
83 - If for some reason you want to execute a script manually YOU  MUST
84
85    cd /media/bs-rescue/bacula-rescue
86    rm -r scripts/working
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
91
92    -- execute your scripts here
93
94
95 -------------------------------------------------------------------------------------------------------