This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bareos_power_on_off_sd [2017/02/18 19:07] – herwarth | bareos_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 - / | ||
| + | Job { | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | RunBeforeJob = / | ||
| + | } | ||
| + | </ | ||
| <code - / | <code - / | ||
| #!/bin/bash | #!/bin/bash | ||