3 # Attempt to backup and restore a file with the bpipe plugin
10 scripts/copy-plugin-confs
13 echo "${cwd}/README" >${cwd}/tmp/file-list
17 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
20 @$out ${cwd}/tmp/log1.out
21 label storage=File1 volume=TestVolume001
22 @#setdebug level=50 client=$CLIENT
23 run job=$JobName storage=File1 yes
32 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
37 @$out ${cwd}/tmp/log2.out
38 setdebug level=50 client=$CLIENT
39 restore where=${cwd}/tmp select all storage=File1 done
42 setdebug level=0 client=$CLIENT
52 # ****FIXME**** test if the restore of the two files is OK
55 # Remove plugin so we can try the restore without the plugin
57 mv -f ${cwd}/bin/plugins/bpipe-fd.so ${cwd}/bin/plugins/bpipe-fd.sox
59 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
60 @$out ${cwd}/tmp/log2.out
62 @exec "sh -c 'rm -f ${cwd}/bin/plugins/bpipe-fd.so'"
64 @# now do a restore without the plugin
66 @$out ${cwd}/tmp/log2.out
67 @#setdebug level=50 client=$CLIENT
68 restore where=${cwd}/tmp select all storage=File1 done
79 check_for_zombie_jobs storage=File1
84 mv -f ${cwd}/bin/plugins/bpipe-fd.sox ${cwd}/bin/plugins/bpipe-fd.so
88 # ****FIXME**** test that all three files are restored correctly
90 diff ${cwd}/${file} ${cwd}/tmp/${file}