3 # Run a simple backup of the /usr directory
7 scripts/copy-tape-confs
9 echo "/usr" >/tmp/file-list
13 echo " === Starting usr-tape-root test ==="
17 bin/bacula start 2>&1 >/dev/null
18 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
22 label storage=DDS-4 Volume=TestVolume001 slot=0
23 run job=NightlySave yes
30 restore where=${cwd}/tmp/bacula-restores select all done
37 bin/bacula stop 2>&1 >/dev/null
39 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-usr-test lib >${cwd}/tmp/original
40 cd ${cwd}/tmp/bacula-restores
41 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-usr-test lib >${cwd}/tmp/restored
43 sed s%.*lib/kbd/consolefonts$%lib/kbd/consolefonts% original >1
46 sed s%.*lib/kbd/consolefonts$%lib/kbd/consolefonts% restored >1
51 diff tmp/original tmp/restored 2>&1 1>/dev/nul
55 echo " ===== !!!! usr-tape-root failed !!!! ===== "
56 echo " ===== !!!! usr-tape-root failed !!!! ===== " >>test.out
59 echo " ===== usr-tape-root OK ===== "
60 echo " ===== usr-tape-root OK ===== " >>test.out