Maintain control of your Microsoft 365 data
Post Reply
craigshephard
Novice
Posts: 4
Liked: never
Joined: Aug 12, 2021 1:44 pm
Full Name: Craig Shephard
Contact:

Migrating to a new Repository

Post by craigshephard »

I am trying to migrate all VBO data to a new repository using the Move-VBOEntityData PS cmdlet. We have 2 organisations, a production and dev which we want to move.

I'm running the following:

$source = Get-VBORepository -Name "Current Proxy"
$destination = Get-VBORepository -name "New Proxy"
$site = Get-VBOEntityData -Type Organization -Repository $source
Move-VBOEntityData -From $source -To $destination -Site $site

and get the following error:

Move-VBOEntityData : Cannot bind parameter 'Site'. Cannot convert the "Veeam.Archiver.PowerShell.Cmdlets.DataManagement.VBOOrganizationData" value of type "Veeam.Archiver.PowerShell.Cmdlets.DataManagement.VBOOrganizationData" to
type "Veeam.Archiver.PowerShell.Cmdlets.DataManagement.VBOSiteData".
At C:\_Scripts\Repo_Migration.ps1:4 char:57
+ Move-VBOEntityData -From $source -To $destination -Site $site
+ ~~~~~
+ CategoryInfo : InvalidArgument: (:) [Move-VBOEntityData], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Archiver.PowerShell.Cmdlets.BackupItems.MoveVBOEntityData

Is this the correct way to move everything in one go?
Mildur
Product Manager
Posts: 9848
Liked: 2606 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Migrating to a new Repository

Post by Mildur »

Have a look at this kb article and the migration script:
https://www.veeam.com/kb3067

It can help you to move all data (sites, exo, onedrive, teams) of a organization to a new backup repo.
Product Management Analyst @ Veeam Software
cerberus
Expert
Posts: 164
Liked: 17 times
Joined: Aug 28, 2015 2:45 pm
Full Name: Mirza
Contact:

Re: Migrating to a new Repository

Post by cerberus »

I went through a similar process few days ago using the script and I found the process to be very SLOW (multi-day) for moving between disks on same server (it was doing item level move).

When I spoke to support there were other options such as crude OS level repository directory copy/paste (in our case this would be much faster, few hours vs. days); but because we already tried the script route we had to stick with it. You may want to open a case before running the script. YMMY
Polina
Veeam Software
Posts: 3191
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: Migrating to a new Repository

Post by Polina »

Migrating with PowerShell is helpful when you need to move some specific objects to another location or move your backups from local repositories to object storage. For the entire repositories, it indeed might be faster to simply copy the whole directories.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests