Unsolved

This post is more than 5 years old

53 Posts

2121

January 12th, 2009 02:00

savepnpc backup failed

I wish to stop service on the client before copying and to start after copying.

1 retry attempted
32476:savepnpc: Unable to run preclntsave for group Default successfully, see savepnpc.log for possible causes.

default.res
type: savepnpc;
precmd: "C:\\Program Files\\Legato\\nsr\\res\\PDB-stop.cmd";
pstcmd: "C:\\Program Files\\Legato\\nsr\\res\\PDB-start.cmd";
timeout: "12:00pm";

savepnpc.log
1/12/2009 12:54:58 PM preclntsave: Starting up the precmds.
1/12/2009 12:54:58 PM preclntsave: No commands specified to be run.

PDB-stop.cmd
net stop wzcsvc

36 Posts

January 14th, 2009 03:00

I had a same problem while trying with savepnpc. I run the commands with:

precmd: "cmd /c E:\\backup\\program_pre.cmd";
pstcmd: "cmd /c E:\\backup\\program_pst.cmd";

which worked for me.

117 Posts

January 14th, 2009 04:00

For your program path includes a blank character the trick is the correct quoting of this.
Two ways should work for you:
a)
precmd: cmd /c "C:\\Program Files\\Legato\\nsr\\res\\PDB-stop.cmd";
pstcmd: cmd /c "C:\\Program Files\\Legato\\nsr\\res\\PDB-start.cmd";

b)
precmd: "\"C:\\\\Program Files\\\\Legato\\\\nsr\\\\res\\\\PDB-stop.cmd\"";
pstcmd: "\"C:\\\\Program Files\\\\Legato\\\\nsr\\\\res\\\\PDB-start.cmd\"";

(unless there is a typo in the numerous backslashes)
HTH
No Events found!

Top