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 @$out ${cwd}/tmp/log1.out
28 @$out ${cwd}/tmp/log2.out
29 restore where=${cwd}/tmp/bacula-restores select
40 check_for_zombie_jobs storage=File
43 # more cleanup needed below
46 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-etc-test etc >${cwd}/tmp/1
47 cd ${cwd}/tmp/bacula-restores
48 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-etc-test etc >${cwd}/tmp/2
49 sort <${cwd}/tmp/1 >${cwd}/tmp/original
50 sort <${cwd}/tmp/2 >${cwd}/tmp/restored
51 rm -f ${cwd}/tmp/1 ${cwd}/tmp/2
53 diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 1>/dev/null
57 echo " ===== !!!! etc-test-root failed !!!! ===== "
58 echo " ===== !!!! etc-test-root failed !!!! ===== " >>test.out
61 echo " ===== etc-test-root OK ===== "
62 echo " ===== etc-test-root OK ===== " >>test.out