When you schedule a report delivery to a folder or a network share, Veeam ONE Reporter saves the generated report to a target location by the following path:
<TargetDirectory>\reporting-task-for-ssrs-report-<ReportName><ID>\
The sample script must perform the following operations after the report is created:
- Access the target report location:
C:\reports\reporting-task-for-ssrs-report-<ReportName><ID>\
- Copy the report from the target location to network shares:
- \\andy\shared\backups\reports\
- \\brian\shared\backups\reports\
- \\chris\shared\backups\reports\
- Remove the report from the target location and delete the target directory.
An example of the script is provided below:
::Changing directory to the target report location |
Save the script as a Windows batch file on the machine where Veeam ONE is installed.
To follow this example, save the script with the postdelivery.bat name to the C:\reports\ directory.