Hello all!
I've installed bacula -1.38.5 on FreeBSD 5.4 system and got a following result
- I can make backup of my test freebsd and windows test stations and restore
them. It works good when I do a backup or restore from hard disk, but when I
tried to do backup to hp dat24 streamer, I can once restore data, after that
when I try to do a backup I have the following error:
Error: I cannot write on Volume "Cassete2" because:
The number of files mismatch! Volume=11 Catalog=10
Tests of btape falls on append test
btape: btape.c:1061 Now moving to end of medium.
btape: btape.c:490 Moved to end of medium.
We should be in file 3. I am at file 4. This is NOT correct!!!!
My config files are :
bacula-sd.conf:
Storage { # definition of myself
Name = pyhalov-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/db/bacula"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
}
Director {
Name = pyhalov-dir
Password = "<password>"
}
Director {
Name = pyhalov-mon
Password = "<password>"
Monitor = yes
}
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp/bacula
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Device {
Name = "HPStreamer"
Media Type = "4ez"
Archive Device = /dev/sa0
Hardware end of medium = No;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = yes;
RandomAccess = no;
Autochanger = no
}
Messages {
Name = Standard
director = pyhalov-dir = all
}
bacula-dir.conf:
Director { # define myself
Name = pyhalov-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/usr/local/share/bacula/query.sql"
WorkingDirectory = "/var/db/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "<password>" # Console assword
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Full
Client = pyhalov-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = HPStreamer
Messages = Standard
Pool = Default
Priority = 10
}
JobDefs {
Name = "WinJob"
Type = Backup
Level = Full
Client = Win-fd
FileSet = "Win Set"
Schedule = "WeeklyCycle"
Storage = "File"
Messages = Standard
Pool = Default
Priority = 10
}
Job {
Name = "Client1"
JobDefs = "DefaultJob"
Write Bootstrap = "/var/db/bacula/Client1.bsr"
}
Job {
Name = "Client2"
JobDefs = "WinJob"
Write Bootstrap = "/var/db/bacula/Client2.bsr"
}
Job {
Name = "RestoreFilesPyhalov"
Type = Restore
Client=pyhalov-fd
FileSet="Full Set"
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
Job {
Name = "RestoreFilesWindows"
Type = Restore
Client = Win-fd
FileSet="Win Set"
Storage = HPStreamer
Pool = Default
Messages = Standard
Where = c:/tmp/bacula-restores
}
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /usr/ports/sysutils/bacula-server/work/bacula-1.38.5
}
}
Schedule {
Name = "WeeklyCycle"
Run = Incremental hourly at 0:00
Run = Incremental hourly at 0:05
Run = Full hourly at 0:12
Run = Incremental hourly at 0:17
Run = Full hourly at 0:30
Run = Incremental hourly at 0:40
Run = Incremental hourly at 0:50
Run = Full hourly at 17:56
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/db/bacula/bacula.sql
}
}
FileSet {
Name = "Win Set"
Include {
Options {
signature = MD5
}
File = "c:/Program Files/Far/Plugins"
}
}
Client {
Name = pyhalov-fd
Address = pyhalov
FDPort = 9102
Catalog = MyCatalog
Password = "<password>" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = Win-fd
Address = 172.18.64.177
FDPort = 9102
Catalog = MyCatalog
Password = "<password>" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Storage {
Name = File
Address = pyhalov # N.B. Use a fully qualified name here
SDPort = 9103
Password = "<password>"
Device = FileStorage
Media Type = File
}
Storage {
Name = "HPStreamer"
Address = pyhalov # N.B. Use a fully qualified name here
SDPort = 9103
Password = "<password>" # password for Storage daemon
Device = "HPStreamer" # must be same as Device in
Storage daemon
Media Type = "4ez" # must be same as MediaType in Storage
daemon
Autochanger = no; # enable for autochanger device
}
Catalog {
Name = MyCatalog
dbname = bacula; user = bacula; password = "<password>"
}
Messages {
Name = Standard
mailcommand = "/usr/local/sbin/bsmtp -h <host> -f \"\(Bacula\) %r\" -s
\"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/local/sbin/bsmtp -h <host> -f \"\(Bacula\) %r\" -s
\"Bacula: Intervention needed for %j\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
operator = [EMAIL PROTECTED] = mount
console = all, !skipped, !saved
}
Messages {
Name = Daemon
mailcommand = "/usr/local/sbin/bsmtp -h <host> -f \"\(Bacula\) %r\" -s
\"Bacula daemon message\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
console = all, !skipped, !saved
}
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Accept Any Volume = yes # write on any volume in the pool
}
Console {
Name = pyhalov-mon
Password = "<password>"
CommandACL = status, .status
}
P.S. I use PostgreSQL db.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users