This is an archive version of the document. To get the most up-to-date information, see the current version.

New-VBRFileToTapeObject

Short Description

Creates a new VBRFileToTapeObject object.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

New-VBRFileToTapeObject [-Server <CHost>] -Path <String> [-IncludeMask <String>] [-Credentials <CCredentials>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Related Commands

Get-VBRServer

Get-VBRCredentials

Return Type

VBRFileToTapeObject

Detailed Description

This cmdlet creates a VBRFileToTapeObject object. This object contains files or directories that you want to add to a file to tape job.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Server

Specifies the host where the files reside.

Default: Local.

False

Named

False

False

Path

Specifies the string with the target file path.

False

Named

False

False

Include
Mask

Used to select files by mask if a directory is set as a source.

Specifies the string with the mask by which you want to select files from the directory.

False

Named

False

False

Credentials

Specifies the credentials you want to use to authenticate with the host.

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example

This command creates an object for a file to tape job. The object contains a folder on the server named "fileserver08".

  1. Run Get-VBRServer to get the server where the files are located. Save it to the $server variable.
  2. Run Get-VBRCredentials to get the credentials to access the Fileserver08. Save the credentials to the $creds variable.
  3. Run New-VBRFileToTapeObject with the saved variables.

PS C:\PS> $server = Get-VBRServer -Name "fileserver08.tech.local"

PS C:\PS> $creds = Get-VBRCredentials -Description "Fileserver08 Adminisrator"

PS C:\PS> New-VBRFileToTapeObject -Server $server -Path "D:\Summary Reports\Payroll Reports" -Credentials $creds