1

I need to delete some files if they have been backed up.

I'm trying to find how to do this with savepnpc command, but it seems that pstcmd is run unconditionally, so even if the backup fails (e.g. there are no tapes available) the files are deleted, which is not what I need.

How could that be done?

Envite
  • 368
  • 2
  • 13
  • You could try querying using `nsradmin` or `mminfo` in the post script, however I am not sure if the group status is already success or fail at that point..... – Marki Dec 25 '14 at 23:33

1 Answers1

-1

The way to solve this is by creating a tempfile on successful completion of the precmd. Then have the postcmd check for the tempfile before running. Be sure to delete the tempfile in the postcmd.