#!/bin/sh # # Run a simple backup of the Bacula build directory using the compressed option # then backup a second time and finally restore it # cwd=`pwd` scripts/copy-test-confs rm -rf /tmp/TestVolume001 /tmp/bacula-restores echo "${cwd}/build" >/tmp/file-list bin/bacula stop 2>&1 >/dev/null bin/drop_sqlite_tables bin/make_sqlite_tables echo " " echo " " echo " === Starting two-jobs-test ===" echo " " bin/bacula start bin/console -c bin/console.conf <>test.out echo " " else echo " ===== two-jobs-test Bacula source OK ===== " echo " ===== two-jobs-test OK ===== " >>test.out rm -rf /tmp/bacula-restores /tmp/TestVolume001 fi