]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/copy-4disk-confs
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / scripts / copy-4disk-confs
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6 #
7 # Setup for using the Virtual Disk Changer (simulates tape changer)
8 #
9 cp -f scripts/bacula-dir-tape.conf ${conf}/bacula-dir.conf
10 cp -f scripts/bacula-sd-4disk.conf ${conf}/bacula-sd.conf
11 cp -f scripts/test-bacula-fd.conf ${conf}/bacula-fd.conf
12 cp -f scripts/test-console.conf ${conf}/bconsole.conf
13 cp -f scripts/test-console.conf ${conf}/bat.conf
14 outf="tmp/sed_tmp2"
15 echo "s%# Autochanger = yes%  Autochanger = yes%g" >${outf}
16 cp ${conf}/bacula-dir.conf tmp/1
17 sed -f ${outf} tmp/1 >${conf}/bacula-dir.conf