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."
17 scripts/copy-test-confs
20 cp -Rp weird-files weird-files2
21 echo "${cwd}/weird-files2" >/tmp/file-list
23 change_jobname NightlySave $JobName
26 bin/testls weird-files2 >${cwd}/tmp/original
28 cat <<END_OF_DATA >tmp/bconcmds
32 label storage=File volume=TestVolume001
41 check_for_zombie_jobs storage=File
43 # Now mess up the a hard link, and a soft link
47 ln hard-file3 hard-file2
49 ln -s soft-file3 soft-file2
51 cat <<END_OF_DATA >tmp/bconcmds
58 restore where= storage=File
71 check_for_zombie_jobs storage=File
74 bin/testls weird-files2 >${cwd}/tmp/restored
77 diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null