3 # Run a simple backup of the Bacula build directory
6 TestName="etc-test-root"
10 scripts/copy-test-confs
11 echo "/etc" >${cwd}/tmp/file-list
15 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
18 @output ${cwd}/tmp/log1.out
28 @output ${cwd}/tmp/log2.out
29 restore where=${cwd}/tmp/bacula-restores select
41 check_for_zombie_jobs storage=File
44 # more cleanup needed below
47 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-etc-test etc >${cwd}/tmp/1
48 cd ${cwd}/tmp/bacula-restores
49 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-etc-test etc >${cwd}/tmp/2
50 sort <${cwd}/tmp/1 >${cwd}/tmp/original
51 sort <${cwd}/tmp/2 >${cwd}/tmp/restored
52 rm -f ${cwd}/tmp/1 ${cwd}/tmp/2
54 diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 1>/dev/null
58 echo " ===== !!!! etc-test-root failed !!!! ===== "
59 echo " ===== !!!! etc-test-root failed !!!! ===== " >>test.out
62 echo " ===== etc-test-root OK ===== "
63 echo " ===== etc-test-root OK ===== " >>test.out