Skip to main content
Solved

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


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.

Best answer by Mildur

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

View original
Did this topic help you find an answer to your question?

10 comments

coolsport00
Forum|alt.badge.img+20
  • Veeam Legend
  • 4109 comments
  • August 10, 2021

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!


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8401 comments
  • August 10, 2021

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.


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8401 comments
  • August 10, 2021
coolsport00 wrote:

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.


Mildur
Forum|alt.badge.img+12
  • Influencer
  • 1035 comments
  • Answer
  • August 10, 2021

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


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8401 comments
  • August 10, 2021
Mildur wrote:

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 


regnor
Forum|alt.badge.img+14
  • Veeam MVP
  • 1346 comments
  • August 10, 2021
Chris.Childerhose wrote:
Mildur wrote:

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.


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8401 comments
  • August 10, 2021
regnor wrote:
Chris.Childerhose wrote:
Mildur wrote:

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. ๐Ÿ˜‚


  • Author
  • Comes here often
  • 12 comments
  • August 10, 2021

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? 


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8401 comments
  • August 10, 2021
omar.desouza wrote:

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.


rfsantos
Forum|alt.badge.img+1
  • Comes here often
  • 23 comments
  • January 24, 2025

Obrigado pessoal.

Estava com o mesmo problema e as sugestรตes me ajudaram


Comment