Hello bacula experts,

I'm new here and have some problems configuring bacula to perform the correct 
job for me.

- I have 2 computers: dev13.mydoom.com and mail.mydoom.com
- on dev13, I want to backup entire content of /usr/local/Zend directory 
located on mail.mydoom.com
- on dev13, all backups will reside on /var/bacula/bacula-restores directory

So, on server (dev13) I installed bacula-mysql-5.0.3-1 and on client (mail) I 
installed only bacula-client-5.0.3-1

When try to backup I receive error saying that /usr/local/Zend directory does 
not exist on dev13.mydoom.com! This is normal because /usr/local/Zend exist 
only on mail.mydoom.com.

So, my question is: What file and where exactly IS REQUIRED to modify? I am 
lost in configuration files and directives ...


Here comes my config files:

On mail.mydoom.com (client) machine:

[r...@mail bacula]# ls
bacula-fd.conf  bconsole.conf
[r...@mail bacula]#

[r...@mail bacula]# cat bacula-fd.conf
# List Directors who are permitted to contact this File daemon
#
Director {
  Name = dev13.mydoom.com-dir
  Password = "alx_dir"
}

#
# "Global" File daemon configuration specifications
#
FileDaemon {                          # this is me
  Name = mail.mydoom.com-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /var/lib/bacula
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = dev13.mydoom.com-dir = all, !skipped, !restored
}
[r...@mail bacula]#

[r...@mail bacula]# cat bconsole.conf
#
# Bacula User Agent (or Console) Configuration File
#

Director {
  Name = dev13.mydoom.com-dir
  DIRport = 9101
  address = dev13.mydoom.com
  Password = "alx_dir"
}
[r...@mail bacula]#

[r...@mail bacula]# service bacula-fd status
bacula-fd (pid 3348) is running...
[r...@mail bacula]#



Now, here comes what I've configured on "server" (dev13.mydoom.com):

[r...@dev13 bacula]# ls
bacula-dir.conf  bacula-fd.conf  bacula-sd.conf  bconsole.conf
[r...@dev13 bacula]#


[r...@dev13 bacula]# cat bacula-dir.conf
Director {                            # define myself
  Name = dev13.mydoom.com-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/usr/lib/bacula/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 1
  Password = "alx_dir"         # Console password
  Messages = Daemon
}

JobDefs {
  Name = "Alx_test_job"
  Type = Backup
  Level = Incremental
  Client = mail.mydoom.com-fd 
  FileSet = "Alx_lista_fisiere"
  Schedule = "AlxOnDemand"
  Storage = AlxFile
  Messages = Standard
  Pool = File
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}

Job {
  Name = "Backup_mail.mydoom.com"
  JobDefs = "Alx_test_job"
}

Schedule {
  Name = "AlxOnDemand"
  Run = Full sun-sat at 17:50
}

# List of files to be backed up
FileSet {
  Name = "Alx_lista_fisiere"
  
  Include {
    Options {
      signature = MD5
    }
    
    File = /usr/local/Zend
  }

  Exclude {
    #File = /usr/local/Zend/ZendOptimizer
  }
}


# Client (File Services) to backup
Client {
  Name = mail.mydoom.com-fd
  Address = dev13.mydoom.com
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  FDPort = 9102
  Catalog = MyCatalog
  Password = "watpEaYgf2N2A6TdVN8QdYDA7MI8Sa9rVjOY1bW7dWGv"          # 
password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Storage {
  Name = AlxFile
  Address = dev13.mydoom.com          # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "alx_storage"
  Device = AlxFileStorage
  Media Type = File
}

# File Pool definition
Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle 
Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
  Maximum Volume Bytes = 50G          # Limit Volume size to something 
reasonable
  Maximum Volumes = 100               # Limit number of Volumes in Pool
}

# Generic catalog service
Catalog {
  Name = MyCatalog
  dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}

# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = Standard
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
\"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
\"Bacula: Intervention needed for %j\" %r"
  mail = r...@localhost = all, !skipped            
  operator = r...@localhost = mount
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
  catalog = all
}


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

[r...@dev13 bacula]#


[r...@dev13 bacula]# cat bacula-sd.conf
Storage {                             # definition of myself
  Name = dev13.mydoom.com-sd
  SDPort = 9103                  # Director's port      
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
}

Director {
  Name = dev13.mydoom.com-dir
  Password = "alx_storage"
}

Device {
  Name = AlxFileStorage
  Media Type = File
  Archive Device = /var/bacula/bacula-restores
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Messages {
  Name = Standard
  director = dev13.mydoom.com-dir = all
}
[r...@dev13 bacula]#


[r...@dev13 bacula]# cat bacula-fd.conf
Director {
  Name = dev13.mydoom.com-dir
  Password = "watpEaYgf2N2A6TdVN8QdYDA7MI8Sa9rVjOY1bW7dWGv"
}

FileDaemon {                          # this is me
  Name = dev13.mydoom.com-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /var/lib/bacula
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}

Messages {
  Name = Standard
  director = dev13.mydoom.com-dir = all, !skipped, !restored
}
[r...@dev13 bacula]#

[r...@dev13 bacula]# cat bconsole.conf
#
# Bacula User Agent (or Console) Configuration File
#

Director {
  Name = dev13.mydoom.com-dir
  DIRport = 9101
  address = dev13.mydoom.com
  Password = "alx_dir"
}
[r...@dev13 bacula]#

[r...@dev13 bacula]# service bacula-dir status
bacula-dir (pid 3292) is running...
[r...@dev13 bacula]# service bacula-sd status
bacula-sd (pid 2561) is running...
[r...@dev13 bacula]# service bacula-fd status
bacula-fd (pid 2576) is running...
[r...@dev13 bacula]#

With above configuration, it complains about missing /usr/local/Zend directory 
on dev13.mydoom.com (which is normal as I said above, because this directory 
exist only remote on mail.mydoom.com which we want to be backed up)

If in bacula-dir.conf on dev13: i will change in section Client {}
Address = dev13.mydoom.com to Address = mail.mydoom.com, I will get another 
error after restarting bacula-dir daemon:

[r...@dev13 bacula]# tail -f /var/lib/bacula/log
12-Dec 18:46 dev13.mydoom.com-dir JobId 0: Fatal error: bsock.c:134 Unable to 
connect to Client: mail.mydoom.com-fd on mail.mydoom.com:9102. ERR=Connection 
timed out

So it seems that password or something else is wrong!

Thanks in advance for your help!

Regards,
Alx

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to