Storage = File
Migration High Bytes = 40M
Migration Low Bytes = 20M
- Migration Time = 60
+ Migration Time = 1
}
Pool {
run job=$JobName level=Full yes
wait
update volume=FileVolume001 VolStatus=Used
-sql
-update Job SET RealEndTime='2004-01-01 12:01:01' WHERE JobId IN (2,3);
-
llist jobid=2,3
list jobs
list volumes
+@#setdebug level=20 dir
@# should migrate only jobid=2 and 3
run job=migrate-time yes
wait
messages
wait
-purge volume=FileVolume001
list jobs
list volumes
+purge volume=FileVolume001
@#
@# now do a restore
@#
check_two_logs
#diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null
diff ${cwd}/tmp/original ${cwd}/tmp/restored
-
dstat=$?
end_test
CALL tests\two-pool-test
CALL tests\two-volume-test
CALL tests\incremental-2disk
+CALL tests\2drive-3pool-test.cmd
+CALL tests\2drive-concurrent-test.cmd
CALL tests\2drive-incremental-2disk
CALL tests\scratch-pool-test
ECHO.
#
# Define the main nightly save backup job
-# By default, this job will back up to disk in /tmp
+# By default, this job will back up to disk in @tmpdir@
Job {
Name = "NightlySave"
Type = Backup
Storage = File
Messages = Standard
Pool = Default
- Where = /tmp/bacula-restores
+ Where = @tmpdir@/bacula-restores
}
FileSet {
Name = "Full Set"
Include { Options { signature=MD5 }
- File = </tmp/file-list
+ File = <@tmpdir@/file-list
}
}
#
# Define the main nightly save backup job
-# By default, this job will back up to disk in /tmp
+# By default, this job will back up to disk in @tmpdir@
Job {
Name = "NightlySave"
Type = Backup
Storage = DDS-4
Messages = Standard
Pool = Default
- Where = /tmp/bacula-restores
+ Where = @tmpdir@/bacula-restores
}
FileSet {
Name = "Full Set"
Include { Options { signature=MD5 }
- File = </tmp/file-list
+ File = <@tmpdir@/file-list
}
}
signature=MD5
verify=pins1
}
- File = </tmp/file-list
+ File = <@tmpdir@/file-list
}
}
#
# Define the main nightly save backup job
-# By default, this job will back up to disk in /tmp
+# By default, this job will back up to disk in @tmpdir@
Job {
Name = "NightlySave"
Type = Backup
Storage = DDS-4
Messages = Standard
Pool = Default
- Where = /tmp/bacula-restores
+ Where = @tmpdir@/bacula-restores
}
COPY scripts\test-bacula-fd.conf bin\bacula-fd.conf
COPY scripts\test-console.conf bin\bconsole.conf
COPY bin\bacula-dir.conf tmp\1
-bin\sed -e "s;# Autochanger = yes; Autochanger = yes;g" tmp\1 >bin\bacula-dir.conf
+sed -e "s;# Autochanger = yes; Autochanger = yes;g" tmp\1 >bin\bacula-dir.conf
COPY scripts\test-bacula-fd.conf bin\bacula-fd.conf
COPY scripts\test-console.conf bin\bconsole.conf
COPY bin\bacula-dir.conf tmp\1
-bin\sed -e "s;# Autochanger = yes; Autochanger = yes;g" tmp\1 >bin\bacula-dir.conf
+sed -e "s;# Autochanger = yes; Autochanger = yes;g" tmp\1 >bin\bacula-dir.conf
COPY scripts\test-console.conf bin\bconsole.conf
COPY bin\bacula-dir.conf tmp\1
-bin\sed -e "s;# Autochanger = yes; Autochanger = yes;g" >bin\bacula-dir.conf
+sed -e "s;# Autochanger = yes; Autochanger = yes;g" >bin\bacula-dir.conf
REM get proper SD tape definitions
COPY scripts\win32_tape_options bin\tape_options
COPY scripts\test-console.conf bin\bconsole.conf
COPY bin\bacula-dir.conf tmp\1
-bin\sed -e "s;# Autochanger = yes; Autochanger = yes;g" tmp\1 >bin\bacula-dir.conf
+sed -e "s;# Autochanger = yes; Autochanger = yes;g" tmp\1 >bin\bacula-dir.conf
REM get proper SD tape definitions
COPY scripts\win32_tape_options bin\tape_options
REM file to keep track of what Slot is loaded. You should not change this file.
REM
-SET dbgfile=%CD%\disk-changer.log
+SET dbgfile=disk-changer.log
REM to turn on logging, uncomment the following line
IF NOT EXIST %dbgfile% COPY nul %dbgfile% >nul
ECHO SET TAPE_DRIVE1=%6 >>config_out.cmd
REM process .in files with sed script
-sed -f %out% %CD%\scripts\test-bacula-dir.conf.in >%CD%\scripts\test-bacula-dir.conf
-sed -f %out% %CD%\scripts\new-test-bacula-dir.conf.in >%CD%\scripts\new-test-bacula-dir.conf
-sed -f %out% %CD%\scripts\testa-bacula-dir.conf.in >%CD%\scripts\testa-bacula-dir.conf
-sed -f %out% %CD%\scripts\test-bacula-fd.conf.in >%CD%\scripts\test-bacula-fd.conf
-sed -f %out% %CD%\scripts\test-bacula-sd.conf.in >%CD%\scripts\test-bacula-sd.conf
-sed -f %out% %CD%\scripts\test-console.conf.in >%CD%\scripts\test-console.conf
-sed -f %out% %CD%\scripts\crypto-bacula-fd.conf.in >%CD%\scripts\crypto-bacula-fd.conf
-sed -f %out% %CD%\scripts\bacula-dir-tape.conf.in >%CD%\scripts\bacula-dir-tape.conf
-sed -f %out% %CD%\scripts\bacula-dir-migration.conf.in >%CD%\scripts\bacula-dir-migration.conf
-sed -f %out% %CD%\scripts\win32-bacula-dir-tape.conf.in >%CD%\scripts\win32-bacula-dir-tape.conf
-sed -f %out% %CD%\scripts\bacula-sd-tape.conf.in >%CD%\scripts\bacula-sd-tape.conf
-sed -f %out% %CD%\scripts\bacula-sd-2tape.conf.in >%CD%\scripts\bacula-sd-2tape.conf
-sed -f %out% %CD%\scripts\bacula-sd-migration.conf.in >%CD%\scripts\bacula-sd-migration.conf
-sed -f %out% %CD%\scripts\bacula-sd-2disk.conf.in >%CD%\scripts\bacula-sd-2disk.conf
-sed -f %out% %CD%\scripts\bacula-sd-2drive.conf.in >%CD%\scripts\bacula-sd-2drive.conf
-sed -f %out% %CD%\scripts\bacula-sd-2disk-drive.conf.in >%CD%\scripts\bacula-sd-2disk-drive.conf
-sed -f %out% %CD%\scripts\cleanup-tape.cmd.in >%CD%\scripts\cleanup-tape.cmd
-sed -f %out% %CD%\scripts\cleanup-2tape.cmd.in >%CD%\scripts\cleanup-2tape.cmd
-sed -f %out% %CD%\scripts\cleanup-2drive.cmd.in >%CD%\scripts\cleanup-2drive.cmd
-sed -f %out% %CD%\scripts\prepare-two-tapes.cmd.in >%CD%\scripts\prepare-two-tapes.cmd
-sed -f %out% %CD%\scripts\bacula-dir.conf.testrunscript.in >%CD%\scripts\bacula-dir.conf.testrunscript
+sed -f %out% scripts\test-bacula-dir.conf.in >scripts\test-bacula-dir.conf
+sed -f %out% scripts\new-test-bacula-dir.conf.in >scripts\new-test-bacula-dir.conf
+sed -f %out% scripts\testa-bacula-dir.conf.in >scripts\testa-bacula-dir.conf
+sed -f %out% scripts\test-bacula-fd.conf.in >scripts\test-bacula-fd.conf
+sed -f %out% scripts\test-bacula-sd.conf.in >scripts\test-bacula-sd.conf
+sed -f %out% scripts\test-console.conf.in >scripts\test-console.conf
+sed -f %out% scripts\crypto-bacula-fd.conf.in >scripts\crypto-bacula-fd.conf
+sed -f %out% scripts\bacula-dir-tape.conf.in >scripts\bacula-dir-tape.conf
+sed -f %out% scripts\bacula-dir-migration.conf.in >scripts\bacula-dir-migration.conf
+sed -f %out% scripts\win32-bacula-dir-tape.conf.in >scripts\win32-bacula-dir-tape.conf
+sed -f %out% scripts\bacula-sd-tape.conf.in >scripts\bacula-sd-tape.conf
+sed -f %out% scripts\bacula-sd-2tape.conf.in >scripts\bacula-sd-2tape.conf
+sed -f %out% scripts\bacula-sd-migration.conf.in >scripts\bacula-sd-migration.conf
+sed -f %out% scripts\bacula-sd-2disk.conf.in >scripts\bacula-sd-2disk.conf
+sed -f %out% scripts\bacula-sd-2drive.conf.in >scripts\bacula-sd-2drive.conf
+sed -f %out% scripts\bacula-sd-2disk-drive.conf.in >scripts\bacula-sd-2disk-drive.conf
+sed -f %out% scripts\cleanup-tape.cmd.in >scripts\cleanup-tape.cmd
+sed -f %out% scripts\cleanup-2tape.cmd.in >scripts\cleanup-2tape.cmd
+sed -f %out% scripts\cleanup-2drive.cmd.in >scripts\cleanup-2drive.cmd
+sed -f %out% scripts\prepare-two-tapes.cmd.in >scripts\prepare-two-tapes.cmd
+sed -f %out% scripts\bacula-dir.conf.testrunscript.in >scripts\bacula-dir.conf.testrunscript
-COPY %CD%\bin\bacula-sd.conf tmp\bacula-sd.tmp >nul
-sed -e "s;C:\\Temp;%CD:\=/%/tmp;g" tmp\bacula-sd.tmp >%CD%\bin\bacula-sd.conf
+COPY bin\bacula-sd.conf tmp\bacula-sd.tmp >nul
+sed -e "s;C:\\Temp;%CD:\=/%/tmp;g" tmp\bacula-sd.tmp >bin\bacula-sd.conf
REM get proper SD tape definitions
-COPY %CD%\scripts\win32_tape_options %CD%\bin\tape_options >nul
+COPY scripts\win32_tape_options bin\tape_options >nul
DEL %out%
DEL tmp\*.tmp
:run_bscan
IF %debug% EQU 1 (
- bin\bscan %1 %2 %3 %4 %5 %6 %7 %8 %9 | tools\tee tmp\log.out
+ bin\bscan %1 %2 %3 %4 %5 %6 %7 %8 %9 | tee tmp\log.out
) ELSE (
bin\bscan %1 %2 %3 %4 %5 %6 %7 %8 %9 >nul 2>&1
)
)
IF EXIST bin\1 DEL /f bin\1
REN bin\bacula-dir.conf 1
- bin\sed -e "s;%oldname%;%newname%;g" bin\1 >bin\bacula-dir.conf
+ sed -e "s;%oldname%;%newname%;g" bin\1 >bin\bacula-dir.conf
REM ECHO Job %oldname% changed to %newname%
GOTO :EOF
:check_two_logs
- tools\grep "^ Termination: *Backup OK" tmp\log1.out >nul 2>&1
+ grep "^ Termination: *Backup OK" tmp\log1.out >nul 2>&1
SET bstat=%ERRORLEVEL%
- tools\grep "^ Termination: *Restore OK" tmp\log2.out >nul 2>&1
+ grep "^ Termination: *Restore OK" tmp\log2.out >nul 2>&1
SET rstat=%ERRORLEVEL%
GOTO :EOF
:check_restore_diff
- tools\diff -r build tmp\bacula-restores\%CD::=%\build >nul 2>&1
+ diff -r build tmp\bacula-restores\%CD::=%\build >nul 2>&1
SET dstat=%ERRORLEVEL%
GOTO :EOF
:check_restore_tmp_build_diff
- tools\diff -r tmp\build tmp\bacula-restores\%CD::=%\tmp\build >nul 2>&1
+ diff -r tmp\build tmp\bacula-restores\%CD::=%\tmp\build >nul 2>&1
SET dstat=%ERRORLEVEL%
GOTO :EOF
COPY build\src\win32\%1\*.pdb bin >nul
COPY build\src\win32\installer\%1\query.sql bin >nul
-COPY bin\cats_sqlite3.dll bin\bacula_cats3.dll >nul
+COPY bin\cats_sqlite3.dll bin\bacula_cats.dll >nul
FOR /f %%i IN ( 'cmd /c openssl.exe rand -base64 33 2^>nul' ) DO SET CLIENT_PASSWORD=%%i
FOR /f %%i IN ( 'cmd /c openssl.exe rand -base64 33 2^>nul' ) DO SET STORAGE_PASSWORD=%%i
FOR %%i in ( %CATS% ) DO (
SET NAME=%%i
SET TARGET=bin\!NAME:sqlite3=bacula!
- tools\sed -f install.sed build\src\win32\installer\%1\!NAME! > !TARGET!
+ sed -f install.sed build\src\win32\installer\%1\!NAME! > !TARGET!
)
-FOR %%i in ( %CONFS% ) DO tools\sed -f install.sed build\src\win32\installer\%%i > bin\%%~ni
+FOR %%i in ( %CONFS% ) DO sed -f install.sed build\src\win32\installer\%%i > bin\%%~ni
-tools\sed -f install.sed build\src\win32\installer\%1\make_sqlite3_tables.sql > bin\make_sqlite3_tables.sql
-tools\sed -f install.sed build\src\win32\installer\%1\mtx-changer.cmd > bin\mtx-changer.cmd
+sed -f install.sed build\src\win32\installer\%1\make_sqlite3_tables.sql > bin\make_sqlite3_tables.sql
+sed -f install.sed build\src\win32\installer\%1\mtx-changer.cmd > bin\mtx-changer.cmd
CALL scripts\bacula uninstall
CALL scripts\bacula install %CD%\bin
#
# Define the main nightly save backup job
-# By default, this job will back up to disk in /tmp
+# By default, this job will back up to disk in @tmpdir@
Job {
Name = "NightlySave"
Type = Backup
Storage = File
Messages = Standard
Pool = Default
- Where = /tmp/bacula-restores
+ Where = @tmpdir@/bacula-restores
}
FileSet {
Name = "Full Set"
Include { Options { signature=MD5 }
- File = </tmp/file-list
+ File = <@tmpdir@/file-list
}
}
Options {
signature=MD5 sparse=yes
}
- File = </tmp/file-list
+ File = <@tmpdir@/file-list
}
}
Options {
signature=MD5 compression=GZIP
}
- File = </tmp/file-list
+ File = <@tmpdir@/file-list
}
}
signature=MD5 compression=GZIP
sparse=yes
}
- File = </tmp/file-list
+ File = <@tmpdir@/file-list
}
}
#
# Define the main nightly save backup job
-# By default, this job will back up to disk in /tmp
+# By default, this job will back up to disk in @tmpdir@
Job {
Name = "NightlySave"
Type = Backup
Storage = File
Messages = Standard
Pool = Default
- Where = /tmp/bacula-restores
+ Where = @tmpdir@/bacula-restores
}
FileSet {
Name = "Full Set"
Include { Options { signature=MD5 }
- File = </tmp/file-list
+ File = <@tmpdir@/file-list
}
}
FileSet {
Name = "SparseSet"
Include { Options { signature=MD5; sparse=yes }
- File=</tmp/file-list
+ File=<@tmpdir@/file-list
}
}
Name = "CompressedSet"
Include {
Options { signature=MD5; compression=GZIP }
- File =</tmp/file-list
+ File =<@tmpdir@/file-list
}
}
Options {
signature=MD5; compression=GZIP
}
- File= </tmp/file-list
+ File= <@tmpdir@/file-list
}
}
Storage = File
Messages = Standard
Pool = Default
- Where = /tmp/bacula-restores
+ Where = @tmpdir@/bacula-restores
}
FileSet {
Name = "Full Set"
Include { Options { signature=SHA1 }
- File =</tmp/file-list
+ File =<@tmpdir@/file-list
}
}
#
# Define the main nightly save backup job
-# By default, this job will back up to disk in /tmp
+# By default, this job will back up to disk in @tmpdir@
Job {
Name = "NightlySave"
Type = Backup
Storage = DDS-4
Messages = Standard
Pool = Default
- Where = /tmp/bacula-restores
+ Where = @tmpdir@/bacula-restores
}
CALL scripts\functions change_jobname localhost-fd %JobName%
CALL scripts\functions start_test
-ECHO %CD:\=/%/tmp/build >\tmp\file-list
+ECHO %CD:\=/%/tmp/build >tmp\file-list
IF NOT EXIST tmp\build MKDIR tmp\build
COPY build\src\dird\*.c tmp\build >nul 2>&1
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
COPY bin\bacula-dir.conf tmp\1
sed -e "s;# Label Format; Label Format;" tmp\1 >bin\bacula-dir.conf
messages
@@out@ tmp/log1.out
label volume=TestVolume001
+1
@#setdebug level=100 storage=File
run job=@JobName@ yes
status storage=File
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\functions check_for_zombie_jobs storage=File1
CALL scripts\functions stop_bacula
-MKDIR %CD%\tmp\bacula-restores
+MKDIR tmp\bacula-restores
bin\bextract -b working/restore.bsr -c bin/bacula-sd.conf %CD:\=/%/tmp %CD:\=/%/tmp/bacula-restores 2>&1 >nul
SET rstat=%ERRORLEVEL%
grep "^ Termination: *Backup OK" tmp\log1.out 2>&1 >nul
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
ECHO volume=TestVolume001^|TestVolume002 >tmp\bscan.bsr
IF %debug% EQU 1 (
- bin\bscan -w working -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf %CD:\=/%/tmp | tools\tee tmp\log.out
+ bin\bscan -w working -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf %CD:\=/%/tmp | tee tmp\log.out
) ELSE (
bin\bscan -w working -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf %CD:\=/%/tmp >nul 2>&1
)
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname CompressedTest %JobName%
CALL scripts\functions start_test
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/tmp/largefile >\tmp\file-list
+ECHO %CD:\=/%/tmp/largefile >tmp\file-list
ECHO Creating a 50MB file with bacula-dir data ...
-tools\dd if=bin/bacula-dir.exe of=%CD:\=/%/tmp/1 bs=1024 count=512 >nul 2>&1
-COPY /b %CD%\tmp\1+%CD%\tmp\1+%CD%\tmp\1+%CD%\tmp\1 %CD%\tmp\2 >nul 2>&1
-DEL %CD%\tmp\1
-COPY /b %CD%\tmp\2+%CD%\tmp\2+%CD%\tmp\2+%CD%\tmp\2+%CD%\tmp\2 %CD%\tmp\3 >nul 2>&1
-DEL %CD%\tmp\2
-COPY /b %CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3 %CD%\tmp\largefile >nul 2>&1
-DEL %CD%\tmp\3
+dd if=bin/bacula-dir.exe of=%CD:\=/%/tmp/1 bs=1024 count=512 >nul 2>&1
+COPY /b tmp\1+tmp\1+tmp\1+tmp\1 tmp\2 >nul 2>&1
+DEL tmp\1
+COPY /b tmp\2+tmp\2+tmp\2+tmp\2+tmp\2 tmp\3 >nul 2>&1
+DEL tmp\2
+COPY /b tmp\3+tmp\3+tmp\3+tmp\3+tmp\3 tmp\largefile >nul 2>&1
+DEL tmp\3
ECHO largefile created
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/tmp/build >\tmp\file-list
+ECHO %CD:\=/%/tmp/build >tmp\file-list
MKDIR tmp\build
COPY build\src\dird\*.c tmp\build >nul 2>&1
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
@output nul
messages
@@out@ tmp/log1.out
-run job=@JobName@
-yes
+run job=@JobName@ yes
wait
messages
quit
@output nul
messages
@output tmp/log1.out
-label storage=File volume=TestVolume001
run job=@JobName@ yes
wait
messages
@output nul
messages
@output tmp/log1.out
-label storage=File volume=TestVolume001
run job=@JobName@ yes
wait
messages
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >${cwd}/tmp/file-list
+ECHO %CD:\=/%/build >tmp/file-list
CALL scripts\functions change_jobname CompressedTest %JobName%
CALL scripts\functions start_test
ECHO Backup 1 done
REM make some files for the incremental to pick up
-tools\touch %CD:\=/%/build/src/dird/*.c
-tools\touch %CD:\=/%/build/src/lib/*.c
+touch %CD:\=/%/build/src/dird/*.c
+touch %CD:\=/%/build/src/lib/*.c
REM
REM run a second job
ECHO Backup 2 done
-tools\touch %CD:\=/%/build/src/dird/*.c
-tools\touch %CD:\=/%/build/src/lib/*.c
+touch %CD:\=/%/build/src/dird/*.c
+touch %CD:\=/%/build/src/lib/*.c
REM
REM run a third job
ECHO Backup 3 done
REM make some files for the incremental to pick up
-tools\touch %CD:\=/%/build/src/lib/*.c
+touch %CD:\=/%/build/src/lib/*.c
REM
REM run a fourth job
CALL scripts\copy-2disk-confs >nul 2>&1
CALL scripts\prepare-two-disks
-ECHO %CD:\=/%/tmp/build >\tmp\file-list
+ECHO %CD:\=/%/tmp/build >tmp\file-list
IF NOT EXIST tmp\build MKDIR tmp\build
COPY build\src\dird\*.c tmp\build >nul 2>&1
CALL scripts\copy-2tape-confs
CALL scripts\cleanup-2tape
-ECHO %CD:\=/%/tmp/build >\tmp\file-list
+ECHO %CD:\=/%/tmp/build >tmp\file-list
IF NOT EXIST tmp\build MKDIR tmp\build
COPY build\src\dird\*.c tmp\build
ECHO %CD:\=/%/tmp/build/ficheriro1.txt>tmp\restore-list
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/tmp/build>${cwd}/tmp/file-list
+ECHO %CD:\=/%/tmp/build>tmp/file-list
MKDIR tmp\build
COPY build\src\dird\*.c tmp\build >nul 2>&1
CALL scripts\cleanup
CALL scripts\copy-migration-confs
CALL scripts\prepare-two-disks
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\copy-migration-confs
CALL scripts\prepare-two-disks
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
COPY bin\bacula-sd.conf tmp\1
-sed "s;# Maximum File Size; Maximum File Size;" %CD%\tmp\1 >%CD%\bin\bacula-sd.conf
+sed "s;# Maximum File Size; Maximum File Size;" tmp\1 >bin\bacula-sd.conf
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\cleanup
CALL scripts\copy-migration-confs
CALL scripts\prepare-two-disks
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\copy-migration-confs
CALL scripts\prepare-two-disks
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\copy-migration-confs
CALL scripts\prepare-two-disks
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
REM COPY bin\bacula-sd.conf tmp\1
REM sed "s;# Maximum File Size; Maximum File Size;" tmp\1 >bin\bacula-sd.conf
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/tmp/build >\tmp\file-list
+ECHO %CD:\=/%/tmp/build >tmp\file-list
MKDIR tmp\build
COPY build\src\dird\*.c tmp\build >nul 2>&1
ECHO %CD:\=/%/tmp/build/ficheriro1.txt>tmp\restore-list
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/tmp/build >\tmp\file-list
+ECHO %CD:\=/%/tmp/build >tmp\file-list
MKDIR tmp\build
COPY build\src\dird\*.c tmp\build >nul 2>&1
DIR /b tmp\build >tmp\1
CALL scripts\functions set_debug 1
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/tmp/build >\tmp\file-list
+ECHO %CD:\=/%/tmp/build >tmp\file-list
IF EXIST tmp\build RD /s /q tmp\build
MKDIR tmp\build
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
-sed -e "s;^;%CD:\=/%;" scripts/flist >tmp\restore2-list
+ECHO %CD:\=/%/build >tmp\file-list
+sed -e "s;^;%CD:\=/%;" scripts\flist >tmp\restore2-list
CALL scripts\functions change_jobname CompressedTest %JobName%
CALL scripts\functions start_test
@output /dev/null
messages
label volume=TestVolume001
+1
@#setdebug level=100 storage=File
@output ${cwd}/tmp/log.RUN2.out
run job=RUN_FD_WARNING yes
CALL scripts\copy-2disk-confs >nul 2>&1
CALL scripts\prepare-two-disks
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
COPY bin\bacula-sd.conf tmp\1 >nul 2>&1
sed -e "s;# Maximum File Size; Maximum File Size;g" tmp\1 >bin\bacula-sd.conf
CALL scripts\cleanup
CALL scripts\copy-testa-confs >nul 2>&1
-ECHO %CD:\=/%/tmp/largefile >\tmp\file-list
+ECHO %CD:\=/%/tmp/largefile >tmp\file-list
ECHO Creating a 60MB file with bacula-dir data ...
-tools\dd if=bin/bacula-dir.exe of=%CD:\=/%/tmp/1 bs=1024 count=500 >nul 2>&1
-COPY /b %CD%\tmp\1+%CD%\tmp\1+%CD%\tmp\1+%CD%\tmp\1+%CD%\tmp\1 %CD%\tmp\2 >nul 2>&1
-DEL %CD%\tmp\1
-COPY /b %CD%\tmp\2+%CD%\tmp\2 %CD%\tmp\3 >nul 2>&1
-DEL %CD%\tmp\2
-COPY /b %CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3 %CD%\tmp\4 >nul 2>&1
-COPY /b %CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\3+%CD%\tmp\4 %CD%\tmp\largefile >nul 2>&1
-DEL %CD%\tmp\3 %CD%\tmp\4
+dd if=bin/bacula-dir.exe of=%CD:\=/%/tmp/1 bs=1024 count=500 >nul 2>&1
+COPY /b tmp\1+tmp\1+tmp\1+tmp\1+tmp\1 tmp\2 >nul 2>&1
+DEL tmp\1
+COPY /b tmp\2+tmp\2 tmp\3 >nul 2>&1
+DEL tmp\2
+COPY /b tmp\3+tmp\3+tmp\3+tmp\3+tmp\3+tmp\3 tmp\4 >nul 2>&1
+COPY /b tmp\3+tmp\3+tmp\3+tmp\3+tmp\3+tmp\4 tmp\largefile >nul 2>&1
+DEL tmp\3 tmp\4
CALL scripts\functions change_jobname MultiVol %JobName%
CALL scripts\functions start_test
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions start_test
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions start_test
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname CompressedTest %JobName%
CALL scripts\functions start_test
CALL scripts\functions check_for_zombie_jobs storage=File
ECHO Backup 1 done
-tools\touch build\src\dird\*.c
+touch build\src\dird\*.c
REM
REM run a second job
REM Make a relatively large backup set 5 x source code directory
REM Reduced to 1 for portable
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions start_test
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test
CALL scripts\copy-2tape-confs
CALL scripts\prepare-two-tapes
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
COPY bin\bacula-sd.conf tmp\1
sed -e "s%# Maximum File Size% Maximum File Size%g" >bin\bacula-sd.conf
CALL scripts\copy-2disk-confs >nul 2>&1
CALL scripts\prepare-two-disks
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
COPY bin\bacula-sd.conf tmp\1
sed -e "s;# Maximum File Size; Maximum File Size;g" tmp\1 >bin\bacula-sd.conf
CALL scripts\functions set_debug 0
CALL scripts\functions copy_test_confs
-ECHO %CD:\=/%/build >\tmp\file-list
+ECHO %CD:\=/%/build >tmp\file-list
CALL scripts\functions change_jobname NightlySave %JobName%
CALL scripts\functions start_test