3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory
11 TestName="weird-files-test"
15 if test ! -d weird-files ; then
17 echo "Weird files not configured. Test not run."
23 scripts/copy-test-confs
24 change_jobname NightlySave $JobName
26 # Note, we save the weird-files directory twice on purpose
27 # because this causes problems with hard linked files
28 # that are only saved once. In 1.33, Bacula now deals
29 # with this situation.
31 echo "${cwd}/weird-files" >${cwd}/tmp/file-list
32 echo "${cwd}/weird-files" >>${cwd}/tmp/file-list
34 # Create a Unix domain socket (sock-file)
41 cat <<END_OF_DATA >tmp/bconcmds
55 restore where=${cwd}/tmp/bacula-restores select storage=File
66 check_for_zombie_jobs storage=File
69 # Note, the Unix domain socket (sock-file) is not restored
70 # by Bacula so we delete it for the diffs. diff.pl already discards them
71 # rm -f weird-files/sock-file
73 # to have the same mtime after the rm, we need to touch directories
74 # touch weird-files tmp/bacula-restores${cwd}/weird-files
77 $rscripts/diff.pl -s weird-files -d tmp/bacula-restores${cwd}/weird-files > tmp/diff.out
81 if test "$debug" -eq 1; then