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.

Dienstag, 20. September 2016

Microsoft SQLServer 2012 - Remote Connection

Microsoft SQLServer 2012 - Remote Connection

See for detail manual


  1. Enable remote Connection. Tool SQL Management Studio
  2. Enable TCP in Tool SQL Server Configuration Manager
  3. IPall 1433 not 0!
  4. Turn on SQL Server Browser Service
  5. Firewall 

Firewall:
sqlservr.exe
sqlbrowser.exe
TCP port 1433
UDP port 1434

Montag, 29. Juni 2015

Wget - copy Website - Windows

How to get Wget?


Open the terminal.
In windows press "windows-key" + R
"cmd"

Download html pages:

This is the windows code.

wget -p --no-parent --convert-links -l3 -
Pdownload URL http://www.uni-tuebingen.de/

-p = This option causes Wget to download all the files that are necessary to properly display a given HTML page.
--no-parent = Do not ever ascend to the parent directory when retrieving recursively. This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded.
Important for Typo3 Website
--convert-links = convert the links in the downloaded files to point to local files
-l3 = i.e. level 3; Specify recursion maximum depth level depth
-Pdownload = download to current directory, i. e. -Pc:\temp\test, download the files to c:\temp\test folder.
URL = Website ti copy, i.e.  http://www.uni-tuebingen.de/

Also try
--mirror
Turn on options suitable for mirroring. This option turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings. It is currently equivalent to ‘-r -N -l inf --no-remove-listing’. 

Download pictures

wget -A .jpg,.png,.gif -p --no-parent --c
onvert-links -l3 -Pdownload http://www.uni-tuebingen.de/

-A = Types of files (accept list)

Also useful
--ignore-case = .JPG or -jpg will be found




Donnerstag, 18. Juni 2015

Chemikaliendatenbank Open Eventory


Recherche der CAS Nummer


Die meisten Chemikalien in einer freien Datenbank
http://chem.sis.nlm.nih.gov/chemidplus/

Gut für deutsche Chem.Namen (1 Mio Chemikalien)
http://www.organische-chemie.ch/OC/chemikalien/suche.htm

http://www.chemicalbook.com/

Herstellerdatenbaken
http://www.merckmillipore.com/germany/chemicals

http://www.sigmaaldrich.com/germany.html

Freitag, 24. April 2015

Adobe Acrobat 10.0 does not open

Nothing happens when you launch Acrobat 10.0.

Windows 7 32 and 64 bit
Adobe Acrobat 10.0
Creative Suite 6 (CS 6)

From time to time the Acrobat does not open.

Instead of installing again use the Acrobat Fix Tool Acrofix.zip.

Informations:
https://helpx.adobe.com/creative-suite/kb/acrobat-failed-launch-30-days.html