check_encoding()
{
- $bin/bacula-dir -d50 -t -c $cwd/scripts/bacula-dir.conf 2>&1 | grep 'Wanted SQL_ASCII, got UTF8' >/dev/null
+ $bin/bacula-dir -d50 -t -c bin/bacula-dir.conf 2>&1 | grep 'Wanted SQL_ASCII, got UTF8' >/dev/null
if [ $? = 0 ]; then
echo "Found database encoding problem, please modify the database encoding (SQL_ASCII)"
exit 1
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=100 storage=File
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
@$out tmp/log1.out
setdebug level=150 storage=File
setdebug level=150 Director
-label storage=File volume=TestVolume0001 pool=Default
-label storage=File volume=TestVolume0002 pool=Default
+label storage=File volume=TestVolume0001
+label storage=File volume=TestVolume0002
run job=First yes
messages
quit
@$out /dev/null
messages
@$out tmp/log1.out
-label storage=File1 pool=Default
+label storage=File1
TestVolume001
-label storage=File1 pool=Default
+label storage=File1
TestVolume002
update Volume=TestVolume001 MaxVolBytes=3000000
run job=$JobName storage=File1
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume001 pool=Default
-label storage=File1 volume=TestVolume002 pool=Default
+label storage=File1 volume=TestVolume001
+label storage=File1 volume=TestVolume002
update Volume=TestVolume001 MaxVolBytes=3000000
run job=$JobName storage=File1 yes
wait
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
-label volume=TestVolume001 pool=Default
+label volume=TestVolume001
@$out ${cwd}/tmp/RUN_FD_FAILED.log
run job=RUN_FD_FAILED yes
wait
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
-label volume=TestVolume001 pool=Default
+label volume=TestVolume001
@$out ${cwd}/tmp/RUN_BUG_FATAL.log
run job=BUG_FATAL yes
wait
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
setdebug level=10 fd
run job=$JobName yes
wait
status all
status all
messages
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName storage=File yes
wait
messages
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName level=Full yes
run job=$JobName level=Full yes
run job=$JobName level=Full yes
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
@#setdebug level=10 fd
run job=$JobName yes
wait
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume001 pool=Default
+label storage=File1 volume=TestVolume001
update volume=TestVolume001 MaxVolBytes=1000
run job=$JobName storage=File1 yes
@sleep 5
@output /dev/null
messages
@output ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=NightlySave yes
wait
messages
messages
@$out ${cwd}/tmp/log1.out
setdebug level=100 storage=File
-label storage=File volume=TestVolume002 pool=Default
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume002
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
setdebug level=100 fd
run job=$JobName yes
wait
@output /dev/null
messages
@output ${cwd}/tmp/LOCAL_INC_ERR.log
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
add storage=File2
1
File2
@output /dev/null
messages
@output ${cwd}/tmp/log1.out
-label storage=File pool=Default
+label storage=File
TestVolume001
run job=NightlySave
yes
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume001 pool=Default
+label storage=File1 volume=TestVolume001
run job=$JobName storage=File1 yes
wait
messages
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 pool=Default
+label storage=File1
TestVolume001
-label storage=File1 pool=Default
+label storage=File1
TestVolume002
update Volume=TestVolume001 MaxVolBytes=100000000
@#50000000
estimate job=$JobName
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File pool=Default
+label storage=File
TestVolume001
run job=$JobName
yes
messages
@$out ${cwd}/tmp/log1.out
@#setdebug level=100 storage=File
-label storage=File volume=TestVolume001 pool=Default
-label storage=File volume=TestVolume002 pool=Default
+label storage=File volume=TestVolume001
+label storage=File volume=TestVolume002
run job=$JobName yes
wait
messages
@output /dev/null
messages
@output ${cwd}/tmp/log1.out
-label storage=DDS-4 Volume=TestVolume001 slot=0 pool=Default
+label storage=DDS-4 Volume=TestVolume001 slot=0
run job=NightlySave yes
wait
messages
@output /dev/null
messages
@output ${cwd}/tmp/log1.out
-label storage=File pool=Default
+label storage=File
TestVolume001
run job=NightlySave
yes
@# no media => have to wait
run job=RUN_MAXWAITTIME pool=Default yes
@sleep 2
-wait
@# storage is used by RUN_MAXWAITTIME => have to wait
run job=RUN_MAXSTARTDELAY pool=PoolA when="$WHEN" yes
@sleep 60
mount
wait
messages
-setdebug level=200 dir
run job=RUN_MAXRUNTIME pool=PoolA yes
wait
messages
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume001 pool=Default
-label storage=File1 volume=TestVolume002 pool=Default
-label storage=File1 volume=TestVolume003 pool=Default
-label storage=File1 volume=TestVolume004 pool=Default
+label storage=File1 volume=TestVolume001
+label storage=File1 volume=TestVolume002
+label storage=File1 volume=TestVolume003
+label storage=File1 volume=TestVolume004
update Volume=TestVolume001 MaxVolBytes=100000000
@#50000000
@#12
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume001 pool=Default
-label storage=File1 volume=TestVolume002 pool=Default
-label storage=File1 volume=TestVolume003 pool=Default
+label storage=File1 volume=TestVolume001
+label storage=File1 volume=TestVolume002
+label storage=File1 volume=TestVolume003
update Volume=TestVolume001 volretention=10s
update Volume=TestVolume001 maxvoljobs=1
update Volume=TestVolume002 volretention=10s
status client=${hostname2}-fd
status client=${hostname3}-fd
setdebug level=1 dir
-label storage=File1 pool=Default
+label storage=File1
TestVolume001
-label storage=File1 pool=Default
+label storage=File1
TestVolume002
update Volume=TestVolume001 MaxVolBytes=900000000
status storage=File1
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume001 pool=Default
+label storage=File1 volume=TestVolume001
setdebug level=150 client=$CLIENT
estimate job=$JobName level=Full
setdebug level=50 client=$CLIENT
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
-label storage=File volume=TestVolume002 pool=Default
+label storage=File volume=TestVolume001
+label storage=File volume=TestVolume002
run job=$JobName yes
wait
messages
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume001 pool=Default
-label storage=File1 volume=TestVolume002 pool=Default
-label storage=File1 volume=TestVolume003 pool=Default
-label storage=File1 volume=TestVolume004 pool=Default
+label storage=File1 volume=TestVolume001
+label storage=File1 volume=TestVolume002
+label storage=File1 volume=TestVolume003
+label storage=File1 volume=TestVolume004
@# Note, this is going to fail if the pruning gets
@# to tight because the saved volume is too large.
@# In that case, either add another volume, or
cat <<END_OF_DATA >tmp/bconcmds
@$out tmp/RUN_backup
messages
-label volume=TestVolume001 pool=Default
+label volume=TestVolume001
run job=backup yes
wait
messages
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File1 volume=TestVolume004 pool=Default
-label storage=File1 volume=TestVolume003 pool=Default
-label storage=File1 volume=TestVolume002 pool=Default
-label storage=File1 volume=TestVolume001 pool=Default
+label storage=File1 volume=TestVolume004
+label storage=File1 volume=TestVolume003
+label storage=File1 volume=TestVolume002
+label storage=File1 volume=TestVolume001
update Volume=TestVolume004 MaxVolBytes=3000000
update Volume=TestVolume003 MaxVolBytes=3000000
update Volume=TestVolume002 MaxVolBytes=3000000
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=SparseCompressedTest yes
wait
messages
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
setdebug level=10 fd
run job=$JobName yes
wait
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
estimate job=$JobName
messages
@$out tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
@$out /dev/null
messages
@$out tmp/log1.out
-label storage=File1 volume=TestVolume002 pool=Default
-label storage=File1 volume=TestVolume001 pool=Default
+label storage=File1 volume=TestVolume002
+label storage=File1 volume=TestVolume001
update Volume=TestVolume002 MaxVolBytes=3000000
run job=$JobName storage=File1 yes
wait
@output /dev/null
messages
@output tmp/log1.out
-label storage=DDS-4 Volume=TestVolume001 slot=0 pool=Default
+label storage=DDS-4 Volume=TestVolume001 slot=0
run job=NightlySave yes
wait
messages
messages
@$out tmp/log1.out
setdebug level=1 storage=File sd
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
messages
@$out tmp/log1.out
setdebug level=1 storage=File sd
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
#
# This script uses the virtual disk autochanger
#
-TestName="virtual-backup2-test"
+TestName="virtual-backup-test"
JobName=Vbackup
. scripts/functions
@$out /dev/null
messages
@$out tmp/log1.out
-label storage=File pool=Default
+label storage=File
TestVolume001
run job=$JobName
yes
@$out /dev/null
messages
@$out tmp/log1.out
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
run job=$JobName yes
wait
messages
status all
status all
messages
-label storage=File volume=TestVolume001 pool=Default
+label storage=File volume=TestVolume001
setdebug level=100 dir
run job=$JobName storage=File yes
wait