Set environment variables for RunBeforeJob job

30 views
Skip to first unread message

Christian Tardif

unread,
Mar 2, 2023, 8:33:15 AM3/2/23
to bareos-users
Hi,

I need to change de CWD before running the make_catalog_backup script. I thought to simply do something like:

BAREOS_WORKING_DIR=/var/lib/bareos/dbase-backup /usr/lib/bareos/scripts/make_catalog_backup MyCatalog

but the job ends with:

Error: Runscript: BeforeJob returned non-zero status=208. ERR=No such file or directory

How can I achieve this?

Brock Palen

unread,
Mar 2, 2023, 11:04:27 AM3/2/23
to Christian Tardif, bareos-users
I would make a wrapper script and set everything in it and then call that script in the config.


Brock Palen
bro...@mlds-networks.com
www.mlds-networks.com
Websites, Linux, Hosting, Joomla, Consulting
> --
> 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 bareos-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/e62e79a1-e5ef-4e73-a3a6-7918245d86c3n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages