Make the system shut down or log off automatically using pre/post commands
This article applies to:
- Acronis Backup & Recovery 10 Advanced Server
- Acronis Backup & Recovery 10 Server for Windows (Standalone)
- Acronis Backup & Recovery 10 Advanced Server - Small Business Server Edition
- Acronis Backup & Recovery 10 Advanced Workstation
- Acronis Backup & Recovery 10 Workstation (Standalone)
- Acronis Backup & Recovery 10 Advanced Server - Virtual Edition
Introduction
You can make the system automatically shut down or log off after the backup or recovery task completes.
Solution
- Create a batch file with the following contents:
- To shut down the machine - shutdown -s
- To log off the system - logoff
- When you create a backup or recovery task in Acronis Backup & Recovery 10, click Backup options or Recovery options:
Backup
Recovery
- In the Options window, select Pre/post commands and set the batch files to be executed before or after the backup/restore:
Backup
Recovery
For example
Backup
To make sure all applications are closed before the backup, set the logoff batch file:
To make the system shut down after the backup, set the shutdown batch file:
Backup
To make the system shut down after the recovery:
(!) Clicking Test command will execute the command, i.e. the system will shut down or log off.
More information
See also: