#!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
#
# Run a simple backup of the Bacula build directory
# to a tape then restore it, we do that twice to ensure that
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
+label storage=tape volume=TestVolume001 slot=0 pool=Default
run job=NightlySave yes
@sleep 10
-status storage=DDS-4
+status storage=tape
@sleep 30
messages
wait
@# now do a restore
@#
@$outt ${cwd}/tmp/log2.out
-@#restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
+@#restore where=${cwd}/tmp/bacula-restores select all storage=tape done
@#yes
@#wait
@#messages
END_OF_DATA
run_bacula
-check_for_zombie_jobs storage=DDS-4
+check_for_zombie_jobs storage=tape
stop_bacula
check_two_logs