3 # Run a simple backup of the Bacula build directory
6 TestName="weird-files-test"
10 if test ! -d weird-files ; then
12 echo "Weird files not configured. Test not run."
18 scripts/copy-test-confs
19 change_jobname NightlySave $JobName
21 # Note, we save the weird-files directory twice on purpose
22 # because this causes problems with hard linked files
23 # that are only saved once. In 1.33, Bacula now deals
24 # with this situation.
26 echo "${cwd}/weird-files" >${cwd}/tmp/file-list
27 echo "${cwd}/weird-files" >>${cwd}/tmp/file-list
29 # Create a Unix domain socket (sock-file)
36 cat <<END_OF_DATA >tmp/bconcmds
50 restore where=${cwd}/tmp/bacula-restores select storage=File
61 check_for_zombie_jobs storage=File
63 # Note, the Unix domain socket (sock-file) is not restored
64 # by Bacula so we delete it for the diffs
65 rm -f weird-files/sock-file
66 touch weird-files tmp/bacula-restores${cwd}/weird-files
68 ${cwd}/bin/testls weird-files | sort >${cwd}/tmp/original
69 cd tmp/bacula-restores${cwd}
70 ${cwd}/bin/testls weird-files | sort >${cwd}/tmp/restored
74 #diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null
75 diff -u ${cwd}/tmp/original ${cwd}/tmp/restored