A question concerning the 'If' keyword: is there a status check that can give the SAP server name, in addition to the 'if Q[Database=...] ?
Our situation is that we have a backup system whose system id is P01, the same as in the production system.

The backup system probably runs on a separate application server, e.g. "X123".The system variable V[_ashost] contains the name of the application server. So you can work with the if statement

if V[_ashost=X123]
  // backup system