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
51 # ****FIXME**** test if the restore of the two files is OK
54 # Remove plugin so we can try the restore without the plugin
56 mv -f ${cwd}/bin/plugins/bpipe-fd.so ${cwd}/bin/plugins/bpipe-fd.sox
58 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
59 @$out ${cwd}/tmp/log2.out
61 @exec "sh -c 'rm -f ${cwd}/bin/plugins/bpipe-fd.so'"
63 @# now do a restore without the plugin
65 @$out ${cwd}/tmp/log2.out
66 @#setdebug level=50 client=$CLIENT
67 restore where=${cwd}/tmp select all storage=File1 done
78 check_for_zombie_jobs storage=File1
83 mv -f ${cwd}/bin/plugins/bpipe-fd.sox ${cwd}/bin/plugins/bpipe-fd.so
87 # ****FIXME**** test that all three files are restored correctly
89 diff ${cwd}/${file} ${cwd}/tmp/${file}