Scripts executed after a successful backup finishes

Accessing the script that runs after each successful backup
To access the After successful backup script shown above:
- Click
Jobs in the navigation bar
- Right-click on the desired job and select Edit.
- Click
Scripts on the left menu.
- Click
Run after each successful backup to expand the section.
Entering scripts to run after each successful backup
Scripts that run after each successful backup are useful if you want to execute certain commands but only if the backup completes successfully. For example, you may have a script setup to upload the backup to a FTP server or compress it to a different format. There would be no point in performing these actions if the backup failed, so you can put such scripts here.
- Input scripts to be run only after a successful backup directly into the script window provided.
Example below:
net send Administrator "Backup completed successfully"
// This command will send a network broadcast to the Administrator user with the message: "Backup completed successfully"
- You can further customize your script by inserting unique variables:
- Click Insert variable.
- Choose a variable from the list.
- The variable will now be inserted into your script enclosed with percentage signs (eg. %JOB_NAME%).
- You can insert as many additional variables as required.
- An example with variables:
"C:\Programs\NCFTP\ncftpput" -u username -p password domainname.com /backups
"%BACKUPASSIST_FILENAME%"
// This command will use the command-line FTP program NCFTP to upload the backup file (example), "C:\Backups\Monday.bkf" to a FTP server.
- You can also determine how a failed script is flagged within the backup report using the drop-down menu to the right of the On script failure, report label:
- No error
If the script fails to execute the overall status of the backup job will not be affected.
- Minor warning
If the script fails to execute a minor warning will be logged and then displayed in the backup report.
- Major warning
If the script fails to execute a major warning will be logged and then displayed in the backup report.
- Error
If the script fails to execute an error will be logged and then displayed in the backup report. The job will also terminate at this point before completing any further processes.
