suggest "Client Run Before Job = /root/pre_backup.sh" should be "
Run Before Job = /root/pre_backup.sh" i.e. remove the word client

On 3/20/20 11:22 AM, Goncalo Sousa wrote:
Hello,

I am having a issue with having a script run before the job.

In the bareos server I, /etc/bareos/bareos-dir.d/job/tslxprdapp0001.conf has the following configuration:

Job {
   Name = "tslxprdapp0001-job"
   Client = tslxprdapp0001-fd
   Type = Backup
   Level = Incremental
   FileSet = "tslxprdapp0001-fs"
   Schedule = "schedule"
   Storage = tslxprdapp0001-sd
   Messages = Standard
   Pool = pool-tslxprdapp0001
   Priority = 10
   Write Bootstrap = "/var/lib/bareos/%c.bsr"
   Client Run Before Job = /root/pre_backup.sh
}

_*The script is located in the client tslxprdapp0001*_


Screenshot_2020-03-19 Job details localhost-dir.png



Why is it giving me this error?


--
You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/87c0a46e-5765-4e4f-989d-0ece3acb8e0e%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/87c0a46e-5765-4e4f-989d-0ece3acb8e0e%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/b51bcfc0-0c25-d5de-bf1c-b41fb5f6d3ad%40gmail.com.

Reply via email to