Hello,

I just set up bacula as a primary backup solution for a windows and
linux enviroment.
It does everything perfectly but i can't really use the windows bacula-sd.
I have a debian sarge (3.1) linux box (it's the director as well)
running version 1.38.11 (installed
from the debian "testing" packages), and a ms windows server 2003 sbs
running 1.39.28 (yes, i know it's the beta but
i need the windows sd).
So the problem is that if i would like to make a backup of some files
from the linux box and write it to the windows box, it
gives the error attached. I see it doesn't create the volume, but i
don't know why. (Both the SD and the FD run as a service,
as a local system user). With the same setup, it works fine on the linux
box.
Could you please point me what i am doing wrong?
(I've attached an output, a director conf and the windows sd conf)

Thanks in advance,
Adam Divak

# Definition of file storage device
Storage {
  Name = File
# Do not use "localhost" here    
  Address = <win.ip>                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "..."
  Device = FileStorage
  Media Type = File
}

#Bacula main config file

#
# ----- MAIN PART -----
#

Director {                            # define myself
  Name = natalie-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = "..."         # Console password
  Messages = Daemon
  DirAddress = <linux.ip>
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = natalie-mon
  Password = "..."
  CommandACL = status, .status
}

#
# ----- DEFAULT JOB DEF -----
#

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = natalie-fd 
  FileSet = "test"
  Schedule = "WeeklyCycle"
  Storage = ibmstore
  Messages = Standard
  Pool = Default
  Full Backup Pool = Full-Pool
  Incremental Backup Pool = Inc-Pool
  Differential Backup Pool = Diff-Pool
  Priority = 10
}

#
# ----- JOBS -----
#

Job {
  Name = "Default test"
  JobDefs = "DefaultJob"
  FileSet = "test"
  Write Bootstrap = "/var/lib/bacula/test1.bsr"
}

Job {
  Name = "natiroot"
  JobDefs = "DefaultJob"
  FileSet = "natiroot"
  Write Bootstrap = "/var/lib/bacula/natir1.bsr"
}

Job {
  Name = "natiusers"
  JobDefs = "DefaultJob"
  FileSet = "natiusers"
  Write Bootstrap = "/var/lib/bacula/natiu2.bsr"
}

Job {
  Name = "ibmusers"
  JobDefs = "DefaultJob"
  FileSet = "ibmusers"
  Storage = natistore
  Write Bootstrap = "/var/lib/bacula/ibmu1.bsr"
  Client = ibm-fd
}

# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup -u<user> -p<password>"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}

#
# Standard RESTORE template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=natalie-fd                 
  FileSet="test"                  
  Storage = ibmstore                      
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}

#
# ----- FILESETS -----
#

# Default FileSet
#Backs up small amount of useless data
FileSet {
  Name = "test"
  Include {
    Options {
      signature = MD5
    }
    File = /unused
  }
}

# Natalie's root partition backup
FileSet {
  Name = "natiroot"
  Include {
    Options {
      signature = MD5
    }
    File = /
  }
# If you backup the root directory, the following two excluded
#   files can be useful
  Exclude {
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}

# Natalie's users data backup
FileSet {
  Name = "natiusers"
  Include {
    Options {
      signature = MD5
    }
    File = /.../
        File = /.../
  }
    Exclude {
        File = /.../
  }
}

# ibm user's data
FileSet {
  Name = "ibmusers"
  Include {
    Options {
      signature = MD5
    }
    File = "C:\\Users"
    File = "C:\\Inetpub"
  }
}

# This is the backup of the catalog
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /var/lib/bacula/bacula.sql
  }
}

#
# ----- SCHEUDLES -----
#

#
# When to do the backups, full backup on first sunday of the month,
#  differential (i.e. incremental since full) every other sunday,
#  and incremental backups other days
Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st mon at 02:00
  Run = Differential 2nd-5th mon at 02:00
  Run = Incremental tue-sun at 02:00
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 02:30
}

#
# ----- CLIENTS -----
#

#Natalie
Client {
  Name = natalie-fd
  Address = <linux.ip>
  FDPort = 9102
  Catalog = MyCatalog
  Password = "..."          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

#IBM
Client {
  Name = ibm-fd
  Address = <win.ip>
  FDPort = 9102
  Catalog = MyCatalog
  Password = "..."      # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}


#
# ----- FILE STORAGE DEVICE -----
#
#Do not use localhost as address

Storage {
  Name = natistore   
  Address = <linux.ip>
  SDPort = 9103
  Password = "..."
  Device = NatiFileStorage
  Media Type = File
}

#IBM
Storage {
  Name = ibmstore   
  Address = <win.ip>
  SDPort = 9103
  Password = "..."
  Device = IbmFileStorage
  Media Type = File
}

#
# ----- CATALOG -----
#

# Generic catalog service
Catalog {
  Name = MyCatalog
  dbname = ...; DB Address = "..."; user = ...; password = "..."
}

# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
#  to replace the %r in the from field (-f part) with a single valid
#  email address in both the mailcommand and the operatorcommand.
#
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s 
\"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s 
\"Bacula: Intervention needed for %j\" %r"
  mail = ... = all, !skipped            
  operator = ... = mount
  console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
#          time to time as it will grow indefinitely. However, it will
#          also keep all your messages if they scroll off the console.
#
  append = "/var/lib/bacula/log" = all, !skipped
}


#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s 
\"Bacula daemon message\" %r"
  mail = ... = all, !skipped            
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}


#
# ----- POOLS -----
#
    
# Default pool definition
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
}

#Normal pools
Pool {
  Name = Full-Pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 2 months
  Maximum Volume Jobs = 1
  Label Format = Full-
  Maximum Volumes = 2
}

Pool {
  Name = Diff-Pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 2 month
  Maximum Volume Jobs = 3
  Label Format = Diff-
  Maximum Volumes = 2
}

Pool {
  Name = Inc-Pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 2 month
  Maximum Volume Jobs = 6
  Label Format = Inc-
  Maximum Volumes = 8
}

02-Dec 16:09 natalie-dir: No prior Full backup Job record found.
02-Dec 16:09 natalie-dir: No prior or suitable Full backup found. Doing FULL 
backup.
02-Dec 16:09 natalie-dir: Start Backup JobId 80, 
Job=natiusers.2006-12-02_16.09.26
02-Dec 16:09 natalie-dir: Created new Volume "Full-0001" in catalog.
02-Dec 16:09 natalie-dir: natiusers.2006-12-02_16.09.26 Fatal error: 
catreq.c:296 Invalid Catalog request: CatReq Job=natiusers.2006-12-02_16.09.26 
UpdateMedia VolName=Full-0001 VolJobs=0 VolFiles=0 VolBlocks=0 VolBytes=0 
VolMounts=0 VolErrors=0 VolWrites=0 MaxVolBytes=0 EndTime=1165072503 
VolStatus=Append Slot=0 relabel=1 InChanger=0 VolReadTime=0 VolWriteTime=0 
VolFirstWritten=0 VolParts=0
02-Dec 16:15 ibm-sd: natiusers.2006-12-02_16.09.26 Fatal error: Error getting 
Volume info: 1990 Invalid Catalog Request: CatReq 
Job=natiusers.2006-12-02_16.09.26 UpdateMedia VolName=Full-0001 VolJobs=0 
VolFiles=0 VolBlocks=0 VolBytes=0 VolMounts=0 VolErrors=0 VolWrites=0 
MaxVolBytes=0 EndTime=1165072503 VolStatus=Append Slot=0 relabel=1 InChanger=0 
VolReadTime=0 VolWriteTime=0 VolFirstWritten=0 VolParts=0
02-Dec 16:09 natalie-fd: natiusers.2006-12-02_16.09.26 Fatal error: job.c:1617 
Bad response to Append Data command. Wanted 3000 OK data
, got 3903 Error append data

02-Dec 16:09 natalie-dir: natiusers.2006-12-02_16.09.26 Error: Bacula 1.38.11 
(28Jun06): 02-Dec-2006 16:09:32
  JobId:                  80
  Job:                    natiusers.2006-12-02_16.09.26
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "natalie-fd" i486-pc-linux-gnu,debian,testing/unstable
  FileSet:                "natiusers" 2006-12-02 02:00:14
  Pool:                   "Full-Pool"
  Storage:                "ibmstore"
  Scheduled time:         02-Dec-2006 16:09:23
  Start time:             02-Dec-2006 16:09:32
  End time:               02-Dec-2006 16:09:32
  Elapsed time:           0 secs
  Priority:               10
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0 (0 B)
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  Volume name(s):         
  Volume Session Id:      8
  Volume Session Time:    1165004558
  Last Volume Bytes:      0 (0 B)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  Error
  SD termination status:  Error
  Termination:            *** Backup Error ***
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to