TestName="migration-volume-test"
JobName=MigVolBackup
. scripts/functions
-set_debug 0
+set_debug 0
. config.out
list volumes
@# should migrate two jobs
@# setdebug level=11 dir
+@echo "Run migrate-volume Job"
+@#setdebug level=100 dir
run job=migrate-volume yes
list volumes
+list jobs
@sleep 3
status storage=DiskChanger
@sleep 1
@sleep 1
status storage=DiskChanger
wait
+list jobs
+sql
+select * from JobMedia where JobId=1;
+
+@# ensure we don't pickup old backup by purging volume
+purge volume=FileVolume001
+purge volume=FileVolume002
+@echo "Now do a restore"
messages
@#
@# now do a restore