Help Center
Choose product document...
Veeam ONE 9.0
Reporter User Guide

Step 3. Create a Script

When you schedule a report delivery for set of reports in a folder, Veeam ONE Reporter saves the reports to a target location by the following path:

<TargetDirectory>\reporting-task-for-folder-<FolderName><ID>\

The sample script must perform the following operations:

  1. Access the target report location:

C:\reports\reporting-task-for-folder-<FolderName><ID>\

  1. For every generated report, retrieve the report name and copy the report to a folder with the report name:

C:\share\myreports\%ReportName%\

To create a folder with the report name, the script will use the %ReportName% parameter.

  1. Remove the reports from the target location and delete the target directory.

An example of the script is provided below:

::Changing directory to the target report location
cd reporting-task-for-folder*
set RD=%cd%

::Removing extension and date from the report file name
set ReportName=%~n1
set Extension=%~x1
set FolderName=%ReportName:~0,-11%

::Copying the report to a folder with the report name
echo f | xcopy %1 "c:\share\myreports\%FolderName%\%ReportName%%Extension%" /y

::Removing the target report location
cd ..\
rd %RD% /s/q

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.

Veeam Large Logo

Deployment Guide

Monitor User Guide

Reporter User Guide

Business View User Guide

Multi-Tenant Monitoring and Reporting

Working with Alarms

Veeam Backup & Replication Documentation

Veeam Endpoint Backup Documentation

Veeam Management Pack Documentation