Solved

Veeam O365 how to delete some specific repository data like Sharepoint, OneDrive, Teams, etc.

  • 10 August 2021
  • 9 comments
  • 4749 views

Userlevel 4

Hello,

 

We have Veeam O365 5b (5.0.1.225). By mistake we enabled the backup job for the entire organization, so that means it includes Sharepoint, OneDrive, Teams, etc. and now our Repository disk is full.

We need to do a clean-up of the repository disk, in order to leave just emails (users, groups, shared mailboxes, archives, etc.) and delete all data of Sharepoint, OneDrive, Teams, etc. Finally create a job only for emails (users, groups, shared mailboxes, archives, etc.)

How can I  do that?

Thanks for your help,

 

Omar De Souza.

icon

Best answer by Mildur 10 August 2021, 22:03

View original

9 comments

Userlevel 7
Badge +16

Hi @omar.desouza -

All the info you need is in the Veeam Backup for O365 User Guide here.

Just follow the steps to create a backup and select the Objects you want for each job.

Hope that helps.

Cheers!

Userlevel 7
Badge +20

Since O365 uses a JET database I don’t believe there is a way to do this.  The best suggestion would be add another drive if a virtual machine and create a new repo.  Then on that set up the new job excluding everything you don’t want.  Then you can let the other repo age out or remove it to free up space once the other job is running successfully.

Userlevel 7
Badge +20

Hi @omar.desouza -

All the info you need is in the Veeam Backup for O365 User Guide here.

Just follow the steps to create a backup and select the Objects you want for each job.

Hope that helps.

Cheers!

Definitely use this for the new job as noted.

Userlevel 7
Badge +12

Removing data needs to be done with the help of powershell. The vbo365 database files will not be getting smaller, but you can remove the data. New mail backups will reuse the already allocated size on the disk.

https://helpcenter.veeam.com/docs/vbo365/powershell/remove-vboentitydata.html?ver=50

 

Another option is to move the data to a new backup repo, that way, the vbo365 backup databases will be only the size of the mail backup data.

https://helpcenter.veeam.com/docs/vbo365/powershell/move-vboentitydata.html?ver=50

https://www.veeam.com/kb3067

Userlevel 7
Badge +20

Removing data needs to be done with the help of powershell. The vbo365 database files will not be getting smaller, but you can remove the data. New mail backups will reuse the already allocated size on the disk.

https://helpcenter.veeam.com/docs/vbo365/powershell/remove-vboentitydata.html?ver=50

 

Another option is to move the data to a new backup repo, that way, the vbo365 backup databases will be only the size of the mail backup data.

https://www.veeam.com/kb3067

Ah yes!!  Forgot about the powershell piece to remove data.  Thanks for that one @Mildur 

Userlevel 7
Badge +12

Removing data needs to be done with the help of powershell. The vbo365 database files will not be getting smaller, but you can remove the data. New mail backups will reuse the already allocated size on the disk.

https://helpcenter.veeam.com/docs/vbo365/powershell/remove-vboentitydata.html?ver=50

 

Another option is to move the data to a new backup repo, that way, the vbo365 backup databases will be only the size of the mail backup data.

https://www.veeam.com/kb3067

Ah yes!!  Forgot about the powershell piece to remove data.  Thanks for that one @Mildur 

I've had to use this earlier today as I had to cleanup a few users 😅

Personally I would go with a new repo as you'll have a clean VBO365 database without white space or fragmentation.

Userlevel 7
Badge +20

Removing data needs to be done with the help of powershell. The vbo365 database files will not be getting smaller, but you can remove the data. New mail backups will reuse the already allocated size on the disk.

https://helpcenter.veeam.com/docs/vbo365/powershell/remove-vboentitydata.html?ver=50

 

Another option is to move the data to a new backup repo, that way, the vbo365 backup databases will be only the size of the mail backup data.

https://www.veeam.com/kb3067

Ah yes!!  Forgot about the powershell piece to remove data.  Thanks for that one @Mildur 

I've had to use this earlier today as I had to cleanup a few users 😅

Personally I would go with a new repo as you'll have a clean VBO365 database without white space or fragmentation.

Yes cleaning up whitespace and fragmentation is fun with JET databases. 😂

Userlevel 4

So, If I need only remove Sharepoint, Teams, OneDrive data for all the repository with Powershell, this is the command? : Remove-VBOEntityData -Repository $repository -OneDrive -Sites 

 

Teams and Sharepoint are included in -Sites? 

Userlevel 7
Badge +20

So, If I need only remove Sharepoint, Teams, OneDrive data for all the repository with Powershell, this is the command? : Remove-VBOEntityData -Repository $repository -OneDrive -Sites 

 

Teams and Sharepoint are included in -Sites? 

Based on the documentation that seems right.

Comment