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