]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/usb/README.restore
Add new usb rescue key code
[bacula/rescue] / rescue / linux / usb / README.restore
diff --git a/rescue/linux/usb/README.restore b/rescue/linux/usb/README.restore
new file mode 100644 (file)
index 0000000..87d9320
--- /dev/null
@@ -0,0 +1,95 @@
+
+Copyright (C) 2009-2010 Bacula Systems SA
+
+Please see the file LICENSE concerning the terms of the license,
+copying and such.
+
+
+
+
+THIS ASSUMES THAT YOU ALLREADY CREATED YOUR USB KEY  (README.usb)
+
+AND SAVED YOUR DATA TO IT (README.save)
+
+
+---------------------------RESTORING A BROKEN MACHINE--------------------------------
+
+-- THE ADDRESS OF THE FILE DAEMON AND STORAGE DAEMON MUST BE 
+             THE IP ADDRESS AND NOT THE HOSTNAME IN THE BACULA-DIR.CONF
+             OF THE MACHINE CONTAINING THE DIRECTOR
+
+
+-boot on the usb stick   (if your computer's bios doesn't support usb booting, use the provided boot-cd)
+                         (available at http://bacula.org/downloads/cd-boot-liveusb2.iso )
+                         (the boot cd works with vmware but not virtualbox)
+
+-open a terminal as root
+
+-execute the start_bacula_rescue script ( in /home/ubuntu/start_bacula_rescue)
+
+-choose restore
+
+
+-it will prompt you for the client you want to restore
+
+-it will show you all the availaible disk devices (followed by previously
+  /dev/XXX) ( this is to ensure the drives didn't swap names)
+
+-choose the disks you want to restore 
+
+     (e.g /dev/sda will repartition /dev/sda, reformat ALL partitions
+     (that were mounted at the time of backup and the call the bacula
+      client to repopulate the data)
+        
+     ( /dev/sda1 would only reformat /dev/sda1 and then call the bacula
+       client to repopulate the data)
+
+-if you didn't provide a bconsole.conf file at the time of backup it will
+ again prompt you for one (if you don't provide it you will have to run
+ the restore job on another machine)
+
+-bconsole will launch
+
+-------------------------------------------------------------------------------------
+---------------BE CAREFULL, IF YOU DIDN'T CHOOSE YOUR ROOT DISK (e.g. /dev/sda1) 
+YOU MUST ONLY RESTORE THE MOUNT POINT OF YOUR CHOOSEN VOLUMES, 
+OTHERWISE YOU WOULD FILL UP THE USB KEY------------------------------
+
+(e.g. I restore the drive sdb5 which was mounted on /mnt/data , I must only restore /mnt/data
+   with bacula)
+
+----------------------------------------------------------------------------------------
+
+-so restore your files with bconsole (or bat, bweb on another machine) 
+
+-when you are all done, press ok
+
+-the script will now look for a /boot/grub directory on the
+ restored disks and try to execute grub-install
+
+  (if you have lilo or some other boot loader you will have to restore them
+   manually)
+
+---et voilĂ -----------YOU JUST RECOVERED YOUR MACHINE
+
+---------------------------------------------------------------------------------------------
+
+
+--------------------------RUNNING SCRIPTS MANUALLY---------------------------------------------
+
+- If you look into the clients/ directory you will find your
+  clients directories
+
+- If for some reason you want to execute a script manually YOU  MUST
+
+   cd /media/bs-rescue/bacula-rescue
+   rm -r scripts/working
+   cp -r clients/(clientname)/* scripts/working ###this is important only take the dirs that are inside
+                                                 #### the client directory (they are named
+                                                ######              scripts and diskinfo)
+   cd scripts/working/scripts
+
+   -- execute your scripts here
+
+
+-------------------------------------------------------------------------------------------------------