Ok, it makes more sense: to rephrase, you want in the pre- and post- scripts do a certain operation (waking the remote server) only if the bakcup target is remote host.
As I pointed out above, you can find out what is running by inspecting command line arguments passed to the script. To make it even eaiser, you can use @Droolio’s suggestion, and add an additional argument to duplciacy, -comment ..., with some unique data that you could check in your pre-/post- scripts to identify the invocation, and skip or not skip waking the remote machine.
That said, note, that you can run any duplicacy operations concurrently. You can run backup/prune/check sequences to remote box, to the cloud, and C. They are entirely independent, there is no need to sequence them, and therefore any logic in your scripts shoudl not depend on the order or concurrency of these invocation: if it does, it’s a strong idication of some flaw in the logic.