Hi Bacula users!

My CentOS 7 bacula server uses Bacula v5.2

In my bacula-dir.conf I want to reference a script to be executed within a FileSet block.

Unfortunately I always get this error message whenever the job is being executed:

<CODE>
Fatal error: Error running program: excludeBigFiles.sh. ERR=No such file or directory
</CODE>

(The script's name is written correctly. I checked it again and again.)

This is the related config section:

<CODE>
Client {
  Name = mybaculaclient-fd
  Address = 192.168.8.52
  FDPort = 9102
  Catalog = MyCatalog
  Password = "myCrypticPassphrase"
  File Retention = 10 weeks
  Job Retention = 126 days
  AutoPrune = yes
}

FileSet {
  Name = "fs-mybaculaclient"
  Include {
    Options {
      WildFile = "*.vmdk"
      WildFile = "*.iso"
      WildFile = "*.api"
      WildDir = "*X_CustomerData*"
      WildDir = "*F_InternalData*"
      exclude = yes
    }
    Options {
      signature = MD5
      compression = GZIP
      ignore case = yes
}
    File = /datadisk

  }
  Exclude {
    File = "/datadisk/ExchangeDrive"
    File = "/datadisk/TypeF_data"
    File = "/datadisk/TypeC_projects"
    File = "workspace"
    File = "\|excludeBigFiles.sh"
  }
}

Job {
  JobDefs = "DefaultJob"
  Name = "mybaculaclient-cli"
  Client = mybaculaclient-fd
  FileSet = "fs-mybaculaclient"
}
</CODE>

Maybe the first question: Where do I have to store the script? Currently it is saved to /etc/bacula on the bacula server as well as on the client. The file permissions on the script are bacula:bacula and 755.
I already tried to reference the script by absolute path:

<CODE>
Exclude {
    File = "/datadisk/ExchangeDrive"
    File = "/datadisk/TypeF_data"
    File = "/datadisk/TypeC_projects"
    File = "workspace"
    File = "\|/etc/bacula/excludeBigFiles.sh"
  }
</CODE>

I also tried it by executing the script on the bacula server:

<CODE>
Exclude {
    File = "/datadisk/ExchangeDrive"
    File = "/datadisk/TypeF_data"
    File = "/datadisk/TypeC_projects"
    File = "workspace"
    File = "|excludeBigFiles.sh"
  }
</CODE>

also:

<CODE>
Exclude {
    File = "/datadisk/ExchangeDrive"
    File = "/datadisk/TypeF_data"
    File = "/datadisk/TypeC_projects"
    File = "workspace"
    File = "|/etc/bacula/excludeBigFiles.sh"
  }
</CODE>

Always the same error.

Thanks in advance!

Best regards
Armin

__________ Information from mm-lab IT security __________The message was 
checked by ESET Mail Security.


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to