#!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
#
# This script uses the virtual disk autochanger
#
TestName="multi-storage-test"
-JobName=backup
+JobName=NightlySave
. scripts/functions
+export REGRESS_CHECK_CORRUPTION=no
+
scripts/cleanup
scripts/copy-2disk-confs
scripts/prepare-disk-changer
if (/(Archive|Changer) Device/) { $_ =~ s:$tmp:$tmp/$i:}
print;
' $conf/bacula-sd.conf > $conf/bacula-sd$i.conf
- mkdir -p ${working}$i
+ mkdir -p ${tmp}/$i
sed "s/bacula-sd.conf/bacula-sd${i}.conf/" $scripts/bacula-ctl-sd \
> $tmp/bacula-ctl-sd$i
chmod +x $tmp/bacula-ctl-sd$i
' $conf/bacula-dir.conf > $tmp/1
cp $tmp/1 $conf/bacula-dir.conf
-disable_pluguins
+disable_plugins
echo "${cwd}/build" >${cwd}/tmp/file-list
$tmp/bacula-ctl-sd$sd stop &> /dev/null
done
+sleep 2
+
# Start SDs
for sd in 2 3 4; do
$tmp/bacula-ctl-sd$sd start &> /dev/null
run level=Incremental storage=File2 job=$JobName yes
wait
messages
-@exec "touch $cwd/build/po/sv.po"
+@exec "touch $cwd/build/po/sv.po $cwd/build/po/test.po"
run level=Incremental storage=File3 job=$JobName yes
wait
messages
messages
@# run a job that will wait for a volume
@$out ${cwd}/tmp/log23.out
-@exec "touch $cwd/build/po/Changelog"
+@exec "touch $cwd/build/po/ChangeLog"
run level=Incremental pool=Special storage=File3 job=$JobName yes
@sleep 5
messages
@#
setdebug trace=1 level=110 client
setdebug trace=1 level=110 director
-restore where=${cwd}/tmp/bacula-restores select all done yes
+restore where=${cwd}/tmp/bacula-restores1 select all done yes
@sleep 10
messages
status dir
select * FROM Storage;
select VolumeName, Name, StorageId, MediaType FROM Media JOIN Storage USING (StorageId);
+@$out ${cwd}/tmp/log24.out
+restore where=${cwd}/tmp/bacula-restores select all done yes
+wait
+messages
quit
END_OF_DATA
check_two_logs
cp $tmp/log23.out $tmp/log2.out
check_two_logs
+cp $tmp/log24.out $tmp/log2.out
+check_two_logs
check_restore_diff