User Tools

Site Tools


bareos_power_on_off_sd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bareos_power_on_off_sd [2017/02/18 19:07] herwarthbareos_power_on_off_sd [2017/02/18 19:09] (current) herwarth
Line 122: Line 122:
 =====Powering on the SD when running a job===== =====Powering on the SD when running a job=====
 When I need to write a backup to the bareos-sd server, I need to power it on. But I do not want to power it on when it is already on. It is possible a job will be triggered with another job still running. When I need to write a backup to the bareos-sd server, I need to power it on. But I do not want to power it on when it is already on. It is possible a job will be triggered with another job still running.
 +<code - /etc/bareos/bareos-dir.d/job/example.conf> 
 +Job { 
 +  . 
 +  . 
 +  . 
 +  RunBeforeJob = /usr/lib/bareos/scripts/poweron_bareos_sd.sh 
 +
 +</code>
 <code - /usr/lib/bareos/scripts/poweron_bareos_sd.sh> <code - /usr/lib/bareos/scripts/poweron_bareos_sd.sh>
 #!/bin/bash #!/bin/bash
bareos_power_on_off_sd.1487444834.txt.gz · Last modified: by herwarth