Dienstag, 28. Februar 2017

Bacula restore Linux

bconsole

Thanks to Andreas Keck.

Default directory is /opt/bacula/working


Client name is tu-xxx

Preperation restore:


echo "list clients" | /opt/bacula/bin/bconsole | grep -i tu-xxx
echo "list jobtotals" | /opt/bacula/bin/bconsole | grep -i tu-xxx
echo "list jobs" | /opt/bacula/bin/bconsole | grep -i tu-xxx
  (you get jobid, first column)
echo "list joblog jobid=xxxxxx" | /opt/bacula/bin/bconsole | grep -i tu-xxx


Start Restore:


  Start bconlole
/opt/bacula/bin/bconsole
  Now you are connetet to bacula server. Prompt is *

restore client=tu-xxx where=
 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 adjtime
     (mark file, in example /etc/adjtime)
Output:1 file marked.
done


Following message appear:

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

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

Volumes marked with "*" are in the Autochanger.


1 file selected to be restored.

Using Catalog "uniyyy"
Run Restore job
JobName:         DefaultRestore
Bootstrap:       /opt/bacula/working/unixxx.bsr
Where:          
Replace:         Always
FileSet:         FullSet
Backup Client:   tu-xxx
Restore Client:  tu-xxx
Storage:         FileChanger-ZDV
When:            2015-11-20 16:39:07
Catalog:         uniyyy
Priority:        10
Plugin Options:  *None*
 

OK to run? (yes/mod/no):

  yes                      (restore starts, jobid will be shown)
  quit                     (leave the bconsole)

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

you can watch the restore

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

Chemstation on Windows 10, 64 bit

Basically I followed the instruction of Jim Beach

http://jbbeach.com/files/Chemstation/Installation_of_ChemStation_on_64_bit_Windows_7.pdf

Install on Windows 10, 64 bit
Agilent ChemStation Rev. B. 04.01 SP1
  • Install Microsoft .NET Framework 3.5
  • Install Chemstation Software from Install CD
    run setup.exe in XP compatibility mode
    Path is c:\
To run 64 bit I used the CorFlags.exe from Microsoft SDK  NetFx 6.6.2 Tools.
This path is used
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\CorFlags.exe
Maybe for you a different path.

  • Open Command prompt with Admin rights
  • for %A in (C:\Chem32\CORE\*) do ("C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\CorFlags.exe" %A /32BIT+)

    Hint: not all files are working, maybe you get the message:
    corflags : error CF008 : The specified file does not have a valid managed header

Start ChemStation
Add Instrument wizard will opened and you can add the devices.

If you want to use an old installation, last action is to copy the old profiles.
Copy the folder "1" to C:\Chem32. "1" stands for your device 1.

When I closed the ChemStation program I got the windows, "program is not properbly closed". No idea how to get rid of the window.