Hi Vladimir,
Well, understood, but thanks for the reminder
But I'm confused a bit then.
https://helpcenter.veeam.com/docs/backu ... ml?ver=100
This lists two option for the new-vbrfiletotapeobject: -Server and -NASBAckup
-Server has the -Path argument and if this is what I'm supposed to do, I cannot seem to figure out how to tell it about my share.
e.g.:
If I try to specify the Veeam Server as -Server and feed an SMB path for -Path, I get:
Code: Select all
$server = Get-VBRServer -Name 'Veeam Server'
New-VBRFileToTapeObject -Server $server -Path '\\123.45.67.78\some-directory'
New-VBRFileToTapeObject : Failed to create file to tape job object. [b]The specified is invalid[/b]: \\123.45.67.78\some-directory
At line:1 char:1
(Pretty sure there's a typo there too

)
Veeam sees this path just fine for SMB File Shares everywhere else so I'm pretty confident there's no connection issue here, -Path just doesn't want an SMB path I think.
So I was trying it with -NASServer, which works, but I can only use the root level path that's part of the share. I'm not able to specify -Path with -NASShare (they seem mutually exclusive), so I'm not quite sure how to do what you're saying or what I'm missing.
What I need is occasional one-off Tape Backups of SMB share folders that exist under the common share root, but are temporary folders that don't need to be there permanently. The directory will change constantly (project folders), so while I can just keep adding and removing File Shares to Inventory, it's a bit tedious.
From the UI, I can do this just fine and backup only a certain folder from under an SMB File Share, but would prefer to have a powershell way for this.