Hi All,
I tried to use savepnpc the first time, but it doesn’t work. Obviously I did not set it up correctly, but I don’t know why ;-).
What I want to do is:
Run a post command after a backup which deletes an older version of a file (my colleague creates database dumps)
I tried the following to test it:
1 client in a test group, backup command is savepnpc
I Changed the group res file on the client after a first small backup:
type: savepnpc;
precmd: "echo hello";
pstcmd: "c:\\Program Files (x86)\\Legato\\nsr\\res\\LegatoPostCMD.cmd";
timeout: "12:00:00";
abort precmd with group: No;
The cmd file contains (for testing):
ren C:\Program Files (x86)\Legato\nsr\res\Test.txt Test2.txt
exit
The savepnpc.log shows
3/19/2008 12:36:02 PM preclntsave: All command(s) ran successfully.
3/19/2008 12:37:02 PM pstclntsave: All savesets on the worklist are done.
3/19/2008 12:37:03 PM pstclntsave: Not all command(s) ran successfully.
3/19/2008 12:37:03 PM pstclntsave: Exited.
I’m sure the reason is obvious, but not for me and not today ;o)
Oliver
I tried to use savepnpc the first time, but it doesn’t work. Obviously I did not set it up correctly, but I don’t know why ;-).
What I want to do is:
Run a post command after a backup which deletes an older version of a file (my colleague creates database dumps)
I tried the following to test it:
1 client in a test group, backup command is savepnpc
I Changed the group res file on the client after a first small backup:
type: savepnpc;
precmd: "echo hello";
pstcmd: "c:\\Program Files (x86)\\Legato\\nsr\\res\\LegatoPostCMD.cmd";
timeout: "12:00:00";
abort precmd with group: No;
The cmd file contains (for testing):
ren C:\Program Files (x86)\Legato\nsr\res\Test.txt Test2.txt
exit
The savepnpc.log shows
3/19/2008 12:36:02 PM preclntsave: All command(s) ran successfully.
3/19/2008 12:37:02 PM pstclntsave: All savesets on the worklist are done.
3/19/2008 12:37:03 PM pstclntsave: Not all command(s) ran successfully.
3/19/2008 12:37:03 PM pstclntsave: Exited.
I’m sure the reason is obvious, but not for me and not today ;o)
Oliver