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=150 client=$CLIENT
23 estimate job=$JobName level=Full
24 setdebug level=50 client=$CLIENT
25 run job=$JobName storage=File1 yes
35 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
40 @$out ${cwd}/tmp/log2.out
41 setdebug level=50 client=$CLIENT
42 restore where=${cwd}/tmp select all storage=File1 done
45 setdebug level=0 client=$CLIENT
55 # ****FIXME**** test if the restore of the two files is OK
58 # Remove plugin so we can try the restore without the plugin
60 mv -f ${cwd}/bin/plugins/bpipe-fd.so ${cwd}/bin/plugins/bpipe-fd.sox
62 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
63 @$out ${cwd}/tmp/log2.out
65 @exec "sh -c 'rm -f ${cwd}/bin/plugins/bpipe-fd.so'"
67 @# now do a restore without the plugin
69 @$out ${cwd}/tmp/log2.out
70 @#setdebug level=50 client=$CLIENT
71 restore where=${cwd}/tmp select all storage=File1 done
82 check_for_zombie_jobs storage=File1
87 mv -f ${cwd}/bin/plugins/bpipe-fd.sox ${cwd}/bin/plugins/bpipe-fd.so
91 # ****FIXME**** test that all three files are restored correctly
93 diff ${cwd}/${file} ${cwd}/tmp/${file}