# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !terminate
+ director = @hostname@-dir = all, !terminate, !restored
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !terminate
+ director = @hostname@-dir = all, !terminate, !restored
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !terminate
+ director = @hostname@-dir = all, !terminate, !restored
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !terminate
+ director = @hostname@-dir = all, !terminate, !restored
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = rufus-dir = all, !terminate
+ director = rufus-dir = all, !terminate, !restored
}
mark *
done
yes
+run job=$JobName level=Full Storage=File1 yes
wait
reload
reload
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
estimate job=$JobName listing
-estimate job=$JobName listing
-estimate job=$JobName listing
+estimate job=$JobName
+estimate job=$JobName
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@output /dev/null
estimate job=$JobName listing
-estimate job=$JobName listing
-estimate job=$JobName listing
+estimate job=$JobName
+estimate job=$JobName
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
/bin/cp -f scripts/bacula-dir.conf.regexwhere bin/bacula-dir.conf
+#
+# Remove the !restored from the messages resource because
+# this test needs the restored listing to verify the
+# restore results
+#
+outf="${cwd}/tmp/sed_tmp"
+echo "s%, \!restored%%g" >${outf}
+cp ${cwd}/bin/bacula-fd.conf ${cwd}/tmp/1
+sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-fd.conf
+
echo "${cwd}/build/po" >tmp/file-list
start_test
messages
@output/dev/null
estimate job=$JobName listing
-estimate job=$JobName listing
-estimate job=$JobName listing
+estimate job=$JobName
+estimate job=$JobName
messages
@$out tmp/log1.out
label storage=File volume=TestVolume001