]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/relabel-tape
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / relabel-tape
index 80e0f09e23e7aeff5322c2ef085472b2ba370116..39023ad082b26a79fe9938f1897c4c06246571fe 100755 (executable)
@@ -1,4 +1,9 @@
 #!/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 using the compressed option
 #   then backup four times, each with incremental then finally restore.
@@ -22,12 +27,12 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
-setdebug level=150 storage=DDS-4
-label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
+setdebug level=150 storage=tape
+label storage=tape volume=TestVolume001 slot=0 pool=Default
 run job=$JobName level=Full yes
 wait
 messages
-add pool=Default storage=DDS-4
+add pool=Default storage=tape
 0
 TestVolume002
 @# set status to append
@@ -37,12 +42,12 @@ update volume=TestVolume001
 run job=$JobName level=Full yes
 wait
 list volumes
-unmount storage=DDS-4
-unmount storage=DDS-4
+unmount storage=tape
+unmount storage=tape
 purge volume=TestVolume001
-relabel oldvolume=TestVolume001 volume=TestVolume003 slot=0 pool=Default storage=DDS-4
+relabel oldvolume=TestVolume001 volume=TestVolume003 slot=0 pool=Default storage=tape
 list volumes
-mount storage=DDS-4
+mount storage=tape
 messages
 wait
 run job=$JobName level=Full yes
@@ -53,16 +58,15 @@ quit
 END_OF_DATA
 
 run_bacula
-check_for_zombie_jobs storage=DDS-4
+check_for_zombie_jobs storage=tape
 
 
-echo "Backup done"
 # 
 # now do several restores to ensure we cleanup between jobs
 #
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out ${cwd}/tmp/log2.out
-setdebug level=150 storage=DDS-4
+setdebug level=150 storage=tape
 list volumes
 restore where=${cwd}/tmp/bacula-restores select all done
 yes
@@ -76,7 +80,7 @@ wait
 @#  at the same time
 @#
 list volumes
-unmount storage=DDS-4
+unmount storage=tape
 restore where=${cwd}/tmp/bacula-restores select all done
 yes
 restore where=${cwd}/tmp/bacula-restores select
@@ -84,7 +88,7 @@ unmark *
 mark *
 done
 yes
-mount storage=DDS-4
+mount storage=tape
 wait
 messages
 quit
@@ -92,7 +96,7 @@ END_OF_DATA
 
 run_bconsole
 
-check_for_zombie_jobs storage=DDS-4
+check_for_zombie_jobs storage=tape
 stop_bacula
 
 check_two_logs