I have some more information.
I changed the Client Run Before Job to just Run Before Job, and this works as expected. The problem is specific to Client Run Before Job. This doesn't really help me though since I will need to use this when running the backup of a remote database.
Please, does anyone use variable expansion in ClientRunBeforeJob version 1.36.2 and does it work as expected? Is there something I'm doing obviously wrong?
Thanks,
Tom
[EMAIL PROTECTED] wrote:
Hello everyone,
I'm having trouble trying to get the variable expansion working right in my ClientRunBeforeJob line. Here is what the line is right now for my job:
Client Run Before Job = "su - mercuryd -c \"/u01/mercuryd/backupdb.sh '%t' '%l'\""
I want my backup script to do different things depending on whether I'm doing a Backup, or Restore, and whether the level is Full or Incremental. I figured the above 2 arguments will do that quite nicely. However, my shell script isn't receiving the arguments I'm expecting. When a Job is run from the Schedule automatically, my shell script will receive the following arguments: 'Unknown Type' ''
If I run my job manually, without modifications I get the same results as if it was run automatically. If I run my job manually and set the level to either Full or Incremental (for example, Full), I get the following: 'Unknown Type' 'Full'
Can anybody help me in determining what I'm doing wrong? How can I get the expected arguments to be sent to my shell script?
Thanks,
Tom
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users