PowerShell script exchange
Post Reply
restore-helper
Novice
Posts: 4
Liked: 1 time
Joined: Oct 11, 2018 7:38 am
Contact:

alter exclude mask of existing NAS backup Job

Post by restore-helper »

Hello,

could some one please have a look at my syntac to change the exclude mask of an existing veeam NAS backup job.
Unfortunately it does not seem to work. If the syntax is all right I will open a support case.

PS C:\> (Get-VBRNASBackupJob -Name "File Backup Job Tester").BackupObject | Set-VBRNASBackupJobObject -ExclusionMask "\\naxxxx01\backup-test$\Gruppen\Test\*.exe"
Server Path InclusionMask ExclusionMask
------ ---- ------------- -------------
Veeam.Backup.PowerShell.Cmdlets.VBRNASSMBServer \\naxxxx01\backup-test$\Gruppen {*.*} {\\namfnujp01\backup...


PS C:\> (Get-VBRNASBackupJob -Name "File Backup Job Tester").BackupObject
Server Path InclusionMask ExclusionMask
------ ---- ------------- -------------
Veeam.Backup.PowerShell.Cmdlets.VBRNASSMBServer \\namfnujp01\backup-test$\Gruppen {*.*} {}

nielsengelen
Veeam Software
Posts: 3579
Liked: 709 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: alter exclude mask of existing NAS backup Job

Post by nielsengelen »

You will have to use use Set-VBRNasBackupJobObject to define it and then use Set-VBRNASBackupJob to adjust it with the -BackupObject paramater.
https://foonet.be

restore-helper
Novice
Posts: 4
Liked: 1 time
Joined: Oct 11, 2018 7:38 am
Contact:

Re: alter exclude mask of existing NAS backup Job

Post by restore-helper » 1 person likes this post

Thanks

Set-VBRNASBackupJob was the hint I needed.
It is working as expected now.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests