]> git.sur5r.net Git - bacula/bacula/commitdiff
Add new file
authorKern Sibbald <kern@sibbald.com>
Thu, 2 Oct 2003 07:24:35 +0000 (07:24 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 2 Oct 2003 07:24:35 +0000 (07:24 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@721 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/.cvsignore
regress/scripts/prepare-two-tapes.in [new file with mode: 0755]

index 0253541d2aa9df6326a4e9c854812b42d13655d2..e4e5fdaa822f2c8183de13fb7a4849d52d6187a4 100644 (file)
@@ -10,3 +10,4 @@ testa-bacula-dir.conf
 bacula-dir-tape.conf
 bacula-sd-tape.conf
 cleanup-tape
+prepare-two-tapes
diff --git a/regress/scripts/prepare-two-tapes.in b/regress/scripts/prepare-two-tapes.in
new file mode 100755 (executable)
index 0000000..44cb7f9
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# Create two blank tapes
+#
+@changer_path@ -f @autochanger@ unload
+@changer_path@ -f @autochanger@ load 1
+mt -f @tape_drive@ rewind
+mt -f @tape_drive@ weof
+@changer_path@ -f @autochanger@ unload
+@changer_path@ -f @autochanger@ load 2
+mt -f @tape_drive@ rewind
+mt -f @tape_drive@ weof
+@changer_path@ -f @autochanger@ unload