echo "s%@tape_drive1@%${TAPE_DRIVE1}%g" >>${out}
echo "s%@smtp_host@%${SMTP_HOST}%g" >>${out}
echo "s%@disk_drive@%${cwd}/tmp/disk-changer%g" >>${out}
+echo "s%@hostname@%${hostname}%g" >>${out}
echo "s%@hostname1@%${hostname1}%g" >>${out}
echo "s%@hostname2@%${hostname2}%g" >>${out}
echo "s%@hostname3@%${hostname3}%g" >>${out}
echo "s%@hostname1_files@%${hostname1_files}%g" >>${out}
+echo "s%@hostname_files@%${hostname_files}%g" >>${out}
echo "s%@hostname2_files@%${hostname2_files}%g" >>${out}
echo "s%@hostname3_files@%${hostname3_files}%g" >>${out}
echo "s%@hostname1_password@%${hostname1_password}%g" >>${out}
FileSet {
Name = "Full Set"
Include { Options { signature=MD5 }
- File = </tmp/file-list
+ File = @hostname_files@
}
}
FDPort = 9102
Catalog = MyCatalog
Password = "@hostname2_password@" # password for FileDaemon
- Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon
File Retention = 30d # 30 days
Job Retention = 180d # six months
AutoPrune = yes # Prune expired Jobs/Files
TestVolume001
label storage=File1
TestVolume002
-update Volume=TestVolume001 MaxVolBytes=200000000
+update Volume=TestVolume001 MaxVolBytes=500000000
@#50000000
@#12
@#setdebug level=51 Storage=File1
status storage=File1
-llist volume=TestVolume001
-llist volume=TestVolume002
-run job=${hostname1} level=Full Storage=File1
-yes
-llist volume=TestVolume001
-llist volume=TestVolume002
-run job=${hostname2} level=Full Storage=File1
-yes
-reload
-llist volume=TestVolume001
-llist volume=TestVolume002
-run job=${hostname3} level=Full Storage=File1
-yes
-llist volume=TestVolume001
-llist volume=TestVolume002
-status storage=File1
-run job=$JobName level=Full Storage=File1
-yes
+@#llist volume=TestVolume001
+@#llist volume=TestVolume002
+run job=${hostname1} level=Full Storage=File1 yes
+@#llist volume=TestVolume001
+@#llist volume=TestVolume002
+run job=${hostname2} level=Full Storage=File1 yes
+@#llist volume=TestVolume001
+@#llist volume=TestVolume002
+run job=${hostname3} level=Full Storage=File1 yes
+@#llist volume=TestVolume001
+@#llist volume=TestVolume002
status storage=File1
+run job=$JobName level=Full Storage=File1 yes
@sleep 2
status dir
status storage=File1
-llist volume=TestVolume001
-llist volume=TestVolume002
+@#llist volume=TestVolume001
+@#llist volume=TestVolume002
@sleep 5
messages
wait
done
yes
wait
-reload
-reload
messages
@output
+status dir
+status storage=File1
quit
END_OF_DATA
stop_bacula
check_two_logs
-check_restore_diff
+diff -r ${hostname_files} ${cwd}/tmp/bacula-restores/${hostname_files} 2>&1 >/dev/null
+dstat=$?
end_test