Montag, 27. Februar 2017

Bacula restore with Windows

Start bconsole


Default working directory
c:\Program files\bacula\working
 This will be altert by c:/temp see below.
Or you can choose any other folder. Create the folder before  you start bconsole.




Name of the client computer (tu-xxxx)

Open bconsole
Use Windows Start : Bacula : bconsole
or you can execute
c:\Program files\bacula\bconsole.exe



messages -i grep
print the recent messages.




Begin the restore:


 restore client=tu-wwwblast where=c:/temp
  Eingabe von:  6
     (6: Select backup for a client before a specified time)
  2015-11-10 00:25:07
     (time stamp from previous output, list joblog jobid=xxxxxx)
  cd
     (navigate to the file/directory which should be restored)
  ls
     (shows listing of the cwd)
 mark testfile
     (mark file, in example testfile)
  Output:1 file marked.
  done
  Output:

Bootstrap records written to /opt/bacula/working/xxx.bsr

The Job will require the following (*=>InChanger):
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================
  
    XXX-incr-disk1-1271       FileChanger-XXX           FileChanger-XXX       

Volumes marked with "*" are in the Autochanger.


1 file selected to be restored.

Using Catalog "xxxxxx"
Run Restore job
JobName:         DefaultRestore
Bootstrap:       /opt/bacula/working/xxx.bsr
Where:           c:/temp
Replace:         Always
FileSet:         FullSet
Backup Client:   tu-xxx
Restore Client:  tu-xxx
Storage:         FileChanger-ZDV
When:            2015-11-20 16:39:07
Catalog:         xxx
Priority:        10
Plugin Options:  *None*
OK to run? (yes/mod/no):

  yes                      (restore will be done, jobid will show)
  quit                     (quit bconsole)

with
  echo "list joblog jobid=xxxxxx" | /opt/bacula/bin/bconsole

you can show the log

Keine Kommentare: