This solution applies to Yosemite Server Backup, all versions.
Getting an error 2 (File not found) while trying to run an execution command from the pre/post execution may be due to a rights issue.
Yosemite Server Backup by default runs its service using the System account and its rights of execution are limited to the System account. One method of addressing the issue is to allow the service to interact with the desktop.
To do this:
- Click Start > Run
- Run "services.msc"
- Right click the Yosemite Service and click Properties
- Click on the "Log On" tab
- Click the check box to "Allow Service to interact with Desktop"
- Press Okay
Another method of addressing the issue is to under the same "Log On" tab, change the account that the Yosemite Service uses to an account that has the rights to execute the command.
Link to This Page: