Reynier Perez Mira wrote:
> Hi every:
> I try to run Bacula but it doesn't start and I known't why. I do:
> 
> ~/etc/init.d/bacula-director start 
> Starting Bacula Director: bacula-dir

Possibly a database connection issue.  Look in that bacula-director 
file, find the command it's running, and issue it from the command line. 
   Add one more option:

  /bacula-dir -?
Copyright (C) 2000-2007 Free Software Foundation Europe e.V.

Version: 2.2.7 (24 December 2007)

Usage: dird [-f -s] [-c config_file] [-d debug_level] [config_file]
        -c <file>   set configuration file to file
        -dnn        set debug level to nn
        -f          run in foreground (for debugging)
        -g          groupid
        -r <job>    run <job> now
        -s          no signals
        -t          test - read configuration and exit
        -u          userid
        -v          verbose user messages
        -?          print this message.


Add -f.  Perhaps you can some errors.  Try also -v or -d.

> 
> and aparently all it's fine. This are my conf files for Director and BConsole:
> 
> bacula-dir.conf
> ------------------------------------------------------------------------------------------------------
> #  For Bacula release 2.2.7 (24 December 2007) -- debian lenny/sid
> 
> #Director
> Director {                  
>   Name = gsdbaculaserver-dir
>   Description = "Bacula Director IP"
>   QueryFile = "/etc/bacula/query.sql"
>   WorkingDirectory = "/var/bacula/working"
>   PidDirectory = "/var/run/bacula"
>   Maximum Concurrent Jobs = 2
>   Password = "PbiOij0+frEN37L4/VkFtZBLLtQM18Hny3HaHTfnrBhP"
>   FDConnectTimeOut = 15min
>   SDConnectTimeout = 15min
>   Messages = Daemon
> }
> 
> #Definiciones por defecto para un grupo de trabajos
> JobDefs {
>   Name = "Win32Incremental"
>   Type = Backup
>   Level = Incremental
>   FileSet = "Win32Client"
>   Schedule = "WeeklyCycle"
>   Storage = File
>   Messages = Daemon
>   Priority = 10
> }
> JobDefs {
>   Name = "OthersIncremental"
>   Type = Backup
>   Level = Incremental 
>   FileSet = "OtherClient" 
>   Schedule = "WeeklyCycle" 
>   Storage = File 
>   Messages = Daemon 
>   Priority = 10
> }
> 
> #Definición de trabajos
> Job {
>   Name = "BackupWindows"
>   Client = "win32client"
>   JobDefs = "Win32Incremental"
>   Pool = Win32Pool
>   Write Bootstrap = "/var/lib/bacula/Windows.bsr"
> }
> Job {
>   Name = "BackupCatalog"
>   Client = "win32client"
>   JobDefs = "Win32Incremental"
>   Pool = CatalogPool
>   Level = Full
>   FileSet = "CatalogBackup"
>   Schedule = "WeeklyCycleAfterBackup"
>   RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup <dbname> <user> 
> <password>"
>   RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
>   Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
>   Priority = 11                
> }
> #Job {
> #  Name = "RestoreFiles"
> #  Type = Restore
> #  Client=gsdserver-fd                 
> #  FileSet="Full Set"                  
> #  Storage = File                      
> #  Pool = Default
> #  Messages = Standard
> #  Where = /bacula-restores
> #}
> 
> #Ficheros
> FileSet {
>   Name = "Win32Client"
>   Enable VSS = yes
>   Include {
>         Options {
>         signature = MD5         #Create MD5 Signature
>         compression=GZIP5       #Compress Incoming Data on the client
>         Exclude = yes
>         IgnoreCase = yes
>         # Exclude Mozilla-based programs' file caches
>         WildDir = "[A-Z]:/Documents and Settings/*/Application 
> Data/*/Profiles/*/*/Cache"
>         WildDir = "[A-Z]:/Documents and Settings/*/Application 
> Data/*/Profiles/*/*/Cache.Trash"
>         # Exclude directories full of lots and lots of useless little files
>         WildDir = "[A-Z]:/Documents and Settings/*/Cookies"
>         WildDir = "[A-Z]:/Documents and Settings/*/Recent"
>         WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
>         WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temp"
>         WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temporary 
> Internet Files"
>         # These are always open and unable to be backed up
>         WildFile = "[A-Z]:/Documents and Settings/All Users/Application 
> Data/Microsoft/Network/Downloader/qmgr[01].dat"
>         # Temporary directories & files
>         WildDir = "[A-Z]:/WINDOWS/Temp"
>         WildDir = "[A-Z]:/temp"
>         WildFile = "*.tmp"
>               WildFile = "*.thumb"
>         # Recycle bins
>         WildDir = "[A-Z]:/RECYCLER"
>         # Swap files
>         WildFile = "[A-Z]:/pagefile.sys"
>    }
>     File = "d:/Personal/WWW/portaldt.rar" 
>   }
> }
> FileSet {
>   Name = "OtherClient"
> }
> FileSet {
>   Name = "CatalogBackup"
>   Include {
>     Options {
>       signature = MD5
>     }
>     File = /var/lib/bacula/bacula.sql
>   }
> }
> 
> #Programacion
> Schedule {
>   Name = "WeeklyCycle"
>   Run = Level=Full Pool=Win32Pool sun-sat at 00:00       
> }
> Schedule {
>   Name = "WeeklyCycleAfterBackup"
>   Run = Full sun-sat at 23:10
> }
> 
> #Clientes
> Client {
>   Name = win32client                                  
>   Address = 10.128.50.5                               
>   FDPort = 9102
>   Catalog = MyCatalog
>   Password = "ICvFjZwwt0wlGdMePA44BbEMWqzwzVoozflygnOiwLX8"       
>   File Retention = 30 days
>   Job Retention = 6 months
>   AutoPrune = yes
>   Maximum Concurrent Jobs = 2
> }
> 
> #Almacenamiento
> Storage {
>   Name = File
>   Address = 10.128.50.155              
>   SDPort = 9103
>   Password = "CeRTaJY4A8dHWjuMECHpGCOimrNV0uq4UbX5hNZ6J1Z5"
>   Device = FileStorage
>   Media Type = File
> }
> 
> #BD
> Catalog {
>   Name = MyCatalog
>   dbname = bacula; 
>   user = bacula; 
>   password = ""
> }
> 
> #Mensajes
> Messages {
>   Name = Standard
>   mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
> \"Bacula: %t %e of %c %l\" %r"
>   operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
> \"Bacula: Intervention needed for %j\" %r"
>   mail = [EMAIL PROTECTED] = all, !skipped            
>   operator = [EMAIL PROTECTED] = mount
>   console = all, !skipped, !saved
>   append = "/var/bacula/working/log" = all, !skipped
> }
> Messages {
>   Name = Daemon
>   mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
> \"Bacula daemon message\" %r"
>   mail = [EMAIL PROTECTED] = all, !skipped            
>   console = all, !skipped, !saved
>   append = "/var/bacula/working/log" = all, !skipped
> }
> 
> #Piscina
> Pool {
>   Name = Win32Pool
>   Pool Type = Backup
>   Recycle = yes                       
>   AutoPrune = yes                    
>   Volume Retention = 365 days        
> }
> Pool {
>   Name = OthersPool
>   Pool Type = Backup
>   Recycle = yes                     
>   AutoPrune = yes                    
>   Volume Retention = 365 days      
> }
> Pool {
>   Name = CatalogPool
>   Pool Type = Backup
>   Recycle = yes                       
>   AutoPrune = yes                     
>   Volume Retention = 365 days        
> }
> 
> #Consola
> Console {
>   Name = gsdserver-mon
>   Password = "8xorWnZLmJ315V7d/wKOEGBDXtAwcsMvyDsfF+dFUQqb"
>   CommandACL = status, .status
> }
> 
> bconsole.conf
> --------------------------------------------------------------------------------------
> #
> # Bacula User Agent (or Console) Configuration File
> #
> 
> Director {
>   Name = gsdbaculaserver-dir
>   DIRport = 9101
>   address = 10.128.50.155
>   Password = "PbiOij0+frEN37L4/VkFtZBLLtQM18Hny3HaHTfnrBhP"
> }



-- 
Dan Langille - http://www.langille.org/
BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference:    http://www.pgcon.org/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to