$bperl -e "add_attribute('$conf/bacula-sd.conf', 'MaximumSpoolSize', '2MB', 'Device')"
$bperl -e "add_attribute('$conf/bacula-dir.conf', 'LabelFormat', 'Vol', 'Pool')"
$bperl -e "add_attribute('$conf/bacula-dir.conf', 'NextPool', 'VF', 'Pool')"
+$bperl -e "add_attribute('$conf/bacula-dir.conf', 'MaximumVolumeBytes', '7MB', 'Pool')"
cat <<EOF >> $conf/bacula-dir.conf
Job {
Fileset = "Full Set"
JobDefs = BackupJob
}
+Job {
+ Name = copy
+ Type = Copy
+ Selection Type = Job
+ Selection Pattern = $JobName
+ Client = $HOST-fd
+ Fileset = "Full Set"
+ JobDefs = BackupJob
+}
Job {
Name = verify
Type = Verify
wait
messages
@$out ${cwd}/tmp/log3.out
-run job=migrate yes
+run job=copy jobid=1 yes
wait
messages
run job=verify jobid=4 yes
wait
messages
+@#run job=migrate yes
+@#wait
+@#messages
+@#run job=verify jobid=7 yes
+@#wait
+@#messages
restore where=$tmp/bacula-restores2 jobid=4 all done
yes
wait
estat=1
fi
-grep "Migration OK" $tmp/log3.out > /dev/null
-if [ $? != 0 ]; then
- print_debug "ERROR: Found error with migration in $tmp/log3.out"
- estat=1
-fi
+#grep "Migration OK" $tmp/log3.out > /dev/null
+#if [ $? != 0 ]; then
+# print_debug "ERROR: Found error with migration in $tmp/log3.out"
+# estat=1
+#fi
grep "Verify OK" $tmp/log3.out > /dev/null
if [ $? != 0 ]; then