Maintain control of your Microsoft 365 data
Post Reply
KrisP
Lurker
Posts: 1
Liked: never
Joined: Aug 12, 2022 2:57 pm
Full Name: Kris Price
Contact:

Sharepoint/OneDrive - Folder Exclusions

Post by KrisP »

Hi

Just wondered if there was a plan to add a feature whereby I can exclude sub folders from a users one drive, but still backup other folders for that user?

thanks
Kris
Mildur
Product Manager
Posts: 10540
Liked: 2832 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Sharepoint/OneDrive - Folder Exclusions

Post by Mildur » 1 person likes this post

Hi Kris

Welcome to the R&D Forums.
Yes, that's already possible for One Drive. But you have to use Powershell to add the folder exclusion to the backup job.

https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=60

Code: Select all

$org = Get-VBOOrganization -Name "ABC Company"
$User = Get-VBOOrganizationUser -Organization $org -DisplayName "JohnDoe"
$backupUser = New-VBOBackupItem -User $User -OneDrive
$job = Get-VBOJob -Name "Veeam Backup"
Set-VBOJob -Job $job -SelectedItems $backupUser -ExcludedOneDriveFolders @("ExcludedFolder1","ExcludedFolder2") -EnableExcludedOneDriveFolders
The exclusion is valid for all OneDrive Backups in the entire backup job.

Thanks
Fabian
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests