echo "s%@libdbi@%${libdbi}%g" >>${out}
echo "s%@win32_client@%${WIN32_CLIENT}%g" >>${out}
echo "s%@win32_addr@%${WIN32_ADDR}%g" >>${out}
+echo "s%@win32_store_addr@%${WIN32_STORE_ADDR}%g" >>${out}
echo "s%@win32_file@%${WIN32_FILE}%g" >>${out}
echo "s%@win32_port@%${WIN32_PORT}%g" >>${out}
echo "s%@win32_password@%${WIN32_PASSWORD}%g" >>${out}
Include {
Options {
signature=MD5; portable=no
- compression=GZIP
+# compression=GZIP
}
File = "@win32_file@"
}
Maximum Concurrent Jobs = 4
}
-Client {
- Name = localhost-fd
- Address = localhost
- FDPort = @fdport@
- Catalog = MyCatalog
- Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"
- File Retention = 30d # 30 days
- Job Retention = 180d # six months
- AutoPrune = yes # Prune expired Jobs/Files
- Maximum Concurrent Jobs = 4
-}
-
-# Definition of DDS tape storage device
+# Definition of File storage device
Storage {
Name = File
- Address = @hostname@-sd # N.B. Use a fully qualified name here
+ Address = @win32_store_addr@ # N.B. Use a fully qualified name here
SDPort = @sdport@
Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon
- Device = File # must be same as Device in Storage daemon
+ Device = FileStorage # must be same as Device in Storage daemon
Media Type = File # must be same as MediaType in Storage daemon
- AutoChanger = yes
+# AutoChanger = yes
Maximum Concurrent Jobs = 4
}
run job=copy-job yes
wait
messages
-purge volume=FileVolume001
+@#purge volume=FileVolume001
list jobs
list volumes
wait
@output
messages
@$out ${cwd}/tmp/log1.out
-setdebug level=100 storage=File
+setdebug level=000 storage=File
label storage=File volume=FileVolume001 Pool=Default
label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0
label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
@# purge volume=FileVolume001
list jobs
list volumes
+list joblog jobid=6
wait
@#
@# Now do another backup, but level Incremental
status all
messages
label storage=File volume=TestVolume001
+setdebug level=100 dir
run job=$JobName storage=File yes
wait
messages
@# now do a restore
@#
@$out ${cwd}/tmp/log2.out
-restore where=${cwd}/tmp/bacula-restores select storage=File
+setdebug level=400 trace=1 client=Tibs
+restore where=c:/tmp/xxx select storage=File
unmark *
mark *
done