3 # Run a simple backup of the Bacula build directory
6 TestName="weird-files2-test"
10 if test ! -d weird-files ; then
12 echo "weird files not configured. Test not run."
17 scripts/copy-test-confs
19 cp -Rp weird-files weird-files2
20 echo "${cwd}/weird-files2" >${cwd}/tmp/file-list
22 #perl socket.pl # we no longer restore sockets
25 change_jobname NightlySave $JobName
28 bin/testls weird-files2 | grep -v sock-file >${cwd}/tmp/original
30 cat <<END_OF_DATA >tmp/bconcmds
34 label storage=File volume=TestVolume001
43 check_for_zombie_jobs storage=File
45 # Now mess up the a hard link, and a soft link
49 ln hard-file3 hard-file2
51 ln -s soft-file3 soft-file2
53 cat <<END_OF_DATA >tmp/bconcmds
60 restore where= storage=File
72 check_for_zombie_jobs storage=File
75 bin/testls weird-files2 >${cwd}/tmp/restored
78 diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null
79 #diff -u ${cwd}/tmp/original ${cwd}/tmp/restored
81 if test $dstat -ne 0; then
82 diff -u ${cwd}/tmp/original ${cwd}/tmp/restored