New-VBRFileToTapeObject
Short Description
Defines settings of the source for the files to tape job.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
New-VBRFileToTapeObject -NASServer <VBRUnstructuredServer> [-Path <String>] [-IncludeMask <string>] [-ExcludeMask <string>] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRFileToTapeObject object. This object contains settings of files or directories that you want to add to a file to tape job.
Parameters
Parameter | Description | Type | Required | Position | Accept |
|---|---|---|---|---|---|
NASServer | Specifies network shared folders and file servers. Veeam Backup & Replication will back up these shared folders and file servers with the file to tape job. | Accepts the VBRUnstructuredServer object. To get this object, run the Get-VBRUnstructuredServer cmdlet. | True | Named | False |
Path | Specifies the target file path. | String | False | Named | False |
IncludeMask | Specifies files that you want to back up with the file to tape job. | String | False | Named | False |
ExcludeMask | Specifies files that you want to exclude from the file to tape job. | String | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Creating Object for File to Tape Job
This example shows how to create an object for a file to tape job. The object contains a folder on the fileserver08 server.
$server = Get-VBRUnstructuredServer -Name "fileserver08.tech.local" $folder = New-VBRFileToTapeObject -NASServer $server -Path "D:\Summary Reports\Payroll Reports" |
Perform the following steps:
- Run the Get-VBRUnstructuredServer cmdlet. Specify the Name parameter value. Save the result to the $server variable.
- Run the New-VBRFileToTapeObject cmdlet. Set the $server variable as the NASServer parameter value. Specify the Path parameter value. Save the result to the $folder variable to be used with other cmdlets.
Related Commands