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
62 check_for_zombie_jobs storage=File
64 # Note, the Unix domain socket (sock-file) is not restored
65 # by Bacula so we delete it for the diffs
66 rm -f weird-files/sock-file
67 touch weird-files tmp/bacula-restores${cwd}/weird-files
69 ${cwd}/bin/testls weird-files | sort >${cwd}/tmp/original
70 cd tmp/bacula-restores${cwd}
71 ${cwd}/bin/testls weird-files | sort >${cwd}/tmp/restored
75 #diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null
76 diff -u ${cwd}/tmp/original ${cwd}/tmp/restored