PowerShell script exchange
Post Reply
restore-helper
Influencer
Posts: 24
Liked: 4 times
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
Product Manager
Posts: 5796
Liked: 1215 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.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
restore-helper
Influencer
Posts: 24
Liked: 4 times
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 14 guests