PowerShell script exchange
Post Reply
Westfale
Novice
Posts: 4
Liked: never
Joined: Dec 04, 2019 2:28 pm
Contact:

How to create an empty exclude file mask?

Post by Westfale »

Hello,

I am writing a script to modify the files and folders for an existing file to tape backup job. I am creating FileToTapeObjects like this:
New-VBRFileToTapeObject -Path $PathToBackup -IncludeMask $FileMask -Credentials $Credentials

When I run the script and check the job, every entry in "Files and Folders" has not only filled the Include masks, but also the exclude masks is filled with '*.*'. So I assume that no file will be saved because every file will be excluded.

How Do I prevent this? I tried to create an empty exclude mask with -ExcludeMask ' ', but that didn't help. The only solution I found is to create a dummy file mask like -ExcludeMask 'dummy*.*".

So is there a way to create an empty exclude mask?

Thanks in advance,
Martin
lyapkost
Expert
Posts: 221
Liked: 48 times
Joined: Nov 27, 2015 2:26 pm
Full Name: Konstantin
Location: Saint Petersburg
Contact:

Re: How to create an empty exclude file mask?

Post by lyapkost »

Hi Martin. That's a known bug which is fixed in the upcoming major release. Actually that's only cosmetic issue because despite 'Excluding *.*' mask in GUI, no files are excluded which you can see for yourself by running the job.
Post Reply

Who is online

Users browsing this forum: kcctech1 and 21 guests