3 # Run a simple backup of the Bacula build directory
6 TestName="weird-files2-test"
11 if test ! -d weird-files ; then
13 echo "weird files not configured. Test not run."
18 scripts/copy-test-confs
20 cp -Rp weird-files weird-files2
21 echo "${cwd}/weird-files2" >/tmp/file-list
26 change_jobname NightlySave $JobName
29 bin/testls weird-files2 | grep -v sock-file >${cwd}/tmp/original
31 cat <<END_OF_DATA >tmp/bconcmds
35 label storage=File volume=TestVolume001
44 check_for_zombie_jobs storage=File
46 # Now mess up the a hard link, and a soft link
50 ln hard-file3 hard-file2
52 ln -s soft-file3 soft-file2
54 cat <<END_OF_DATA >tmp/bconcmds
61 restore where= storage=File
74 check_for_zombie_jobs storage=File
77 bin/testls weird-files2 >${cwd}/tmp/restored
80 #diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null
81 diff ${cwd}/tmp/original ${cwd}/tmp/restored