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
64 # Note, the Unix domain socket (sock-file) is not restored
65 # by Bacula so we delete it for the diffs. diff.pl already discards them
66 # rm -f weird-files/sock-file
68 # to have the same mtime after the rm, we need to touch directories
69 # touch weird-files tmp/bacula-restores${cwd}/weird-files
72 $rscripts/diff.pl -s weird-files -d tmp/bacula-restores${cwd}/weird-files > tmp/diff.out
76 if test "$debug" -eq 1; then