#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
-#
-
#
# Run a simple backup of the Bacula build directory then create some
# new files, do an Incremental and restore those two files.
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-setdebug level=3 dir
-setdebug level=3 storage=tape
-setdebug level=3 client=$CLIENT
+setdebug level=3 dir trace=1
+setdebug level=3 storage=tape trace=1
+setdebug level=3 client=$CLIENT trace=1
label storage=tape volume=TestVolume001 slot=1 Pool=Default drive=1
# label storage=tape volume=TestVolume002 slot=2 Pool=Default drive=1
status storage=tape
-setdebug level=120 storage=tape
+setdebug level=120 storage=tape trace=1
run job=NightlySave level=Full yes
@sleep 1
run job=NightlySave level=Full yes
#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
-#
-
#
# Set prefer mounted volumes to no to try to force use of
# the drive swap code.
@#mount storage=tape slot=2 drive=0
@#mount storage=tape slot=1 drive=1
status storage=tape
-setdebug level=120 storage=tape
+setdebug level=120 trace=1 storage=tape
run job=$JobName level=Full yes
@sleep 2
run job=$JobName level=Full yes
#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
-#
-
#
# Run a simple backup of the Bacula build directory. Create three
# tapes, each in a different pool, then run some jobs asking for the
#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
-#
-
#
# Run four jobs at the same time, with two Volumes.
# Set max Vol bytes of first volume
#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
-#
-
#
# Run a simple backup of the Bacula build directory then create some
# new files, do an Incremental and restore those two files.
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-setdebug level=3 dir
-setdebug level=3 storage=tape
-setdebug level=3 client=2drive2disk
+setdebug trace=1 level=3 dir
+setdebug trace=1 level=3 storage=tape
+setdebug trace=1 level=3 client=2drive2disk
label storage=tape volume=TestVolume001 slot=1 Pool=Default drive=0
label storage=tape volume=TestVolume002 slot=2 Pool=Default drive=1
status storage=tape
-setdebug level=200 storage=tape
+setdebug trace=1 level=200 storage=tape
run job=NightlySave yes
run job=NightlySave yes
run job=NightlySave yes
#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
-#
-
#
# Run a simple backup of the Bacula build directory then create some
# new files, do an Incremental and restore those two files.
#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
-#
-
#
# Set prefer mounted volumes to no to try to force use of
# the drive swap code.
#!/bin/sh
#
-# Copyright (C) 2000-2017 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
# Test running a Virtual disk changer with two Media Types
cp -f ${rscripts}/bacula-dir-2media-virtual.conf ${conf}/bacula-dir.conf
cp -f ${rscripts}/bacula-sd-2media-virtual.conf ${conf}/bacula-sd.conf
cp -f ${rscripts}/test-bacula-fd.conf ${conf}/bacula-fd.conf
+cp -f ${rscripts}/test-console.conf ${conf}/bconsole.conf
rm -rf ${tmp}/disk ${tmp}/disk1
mkdir -p ${tmp}/disk ${tmp}/disk1
@#setdebug level=15 storage=Virtual
@#setdebug level=200 client
@#setdebug level=100 director
-label storage=Virtual pool=Default volume=TestVolume001 drive=0 slot=0
-label Storage=vDrive-3 pool=Default volume=TestVolume002 drive=2 slot=0
+label storage=Virtual volume=TestVolume001 pool=Default drive=0 slot=0
+label Storage=vDrive-3 volume=TestVolume002 pool=Default drive=2 slot=0
run job=$JobName level=Full storage=Virtual yes
wait
update volume=TestVolume001 volstatus=Used actiononpurge=truncate
purge volume=TestVolume001
update volume=TestVolume002 volstatus=Used actiononpurge=truncate
purge volume=TestVolume002
-purge volume action=truncate pool=Default storage=Virtual drive=0
-purge volume action=truncate pool=Default storage=Virtual drive=2
+purge volume action=truncate storage=Virtual drive=0 pool=Default
+purge volume action=truncate storage=Virtual drive=2 pool=Default
list volumes
quit
END_OF_DATA