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