Hi,

I want this command to be executed (as root):
su tstadm -c \"/usr/sap/TST/HDB00/exe/hdbsql -t -U BKPOPERATOR 'BACKUP DATA 
INCREMENTAL USING FILE
('/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule');'\"

When I define a related Run Script
ClientRunBeforeJob = "su tstadm -c \"/usr/sap/TST/HDB00/exe/hdbsql -t -U 
BKPOPERATOR 'BACKUP DATA
INCREMENTAL USING FILE 
('/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule');'\""
this is interpreted incorrectly.

In the output below you can see that the command
BACKUP DATA INCREMENTAL USING FILE
(/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule);
don't includes ' and therefore returns an error.
This command is not working w/o '.

05-Jan 13:34 ld2079-fd JobId 198: shell command: run ClientBeforeJob "su tstadm 
-c
"/usr/sap/TST/HDB00/exe/hdbsql -t -U BKPOPERATOR 'BACKUP DATA INCREMENTAL USING 
FILE
('/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule');'""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob:
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: Username : ""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: SID : ""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: Instance : "-1"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: server : ""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: database : ""
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: xuserkey : "BKPOPERATOR"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: nullvalue : "?"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: fieldsep : "NULL"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: cmdsep : ";"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: CMDTrace : "FALSE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: autocommit: "TRUE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: noHeader : "FALSE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: useDBS : "TRUE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: batch : "FALSE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: rollbOnErr: "FALSE"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: Command : "BACKUP DATA 
INCREMENTAL USING FILE
(/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule);"
05-Jan 13:34 ld2079-fd JobId 198: ClientBeforeJob: * 257: sql syntax error: 
incorrect syntax near
"/": line 1 col 37 (at pos 37) SQLSTATE: HY000

What must be changed in order to get command 
BACKUP DATA INCREMENTAL USING FILE
('/usr/sap/TST/HDB00/backup/data/backup-incr-TST-bareos-schedule');
correctly?

THX

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to bareos-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to