SharePoint
Feedback by UserVoice

Amit Chhatbar

My feedback

  1. 22 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  SharePoint Hybrid And Migration » Migration  ·  Flag idea as inappropriate…  ·  Admin →
    Amit Chhatbar commented  · 

    Hi,

    We are migrating content from SharePoint 2010 to SharePoint Online.

    We have two document libraries in team site with 33436 and 33416 documents in team site libraries.

    We have one document library with 27010 documents in Document Centre site.

    We are using following power shell command to migrate data: This command does not migrate all documents, it just copy some data into SharePoint Online. Please let me know what are the other ways to achieve this?

    Run on SharePoint 2010 PowerShell
    $SourUrl = "Site URL"
    $itemUrl = "Library Path"
    $path = "E:\Migration API\Sources\AuthCodeReview"
    Export-SPWeb -Identity $SourUrl -ItemUrl $itemUrl -Path $path -NoFileCompression -IncludeVersions all -Verbose

    Run this on SharePoint online PowerShell
    $cred = get-credential
    $TargetWebUrl = "<Target SPO Site URL>"
    $TargetDocumentLibraryPath = "AuthCodeReview"
    $SourceFilesPath = "E:\Migration API\Sources\AuthCodeReview"
    $outputPackagePath = “E:\Migration API\Sources\AuthCodeReview"
    ConvertTo-SPOMigrationTargetedPackage –SourceFilesPath $SourceFilesPath -SourcePackagePath $SourceFilesPath -outputPackagePath $outputPackagePath -TargetWebUrl $TargetWebUrl -TargetDocumentLibraryPath $TargetDocumentLibraryPath -Credentials $cred -Verbose
    Invoke-SPOMigrationEncryptUploadSubmit -SourceFilesPath $SourceFilesPath -SourcePackagePath $outputPackagePath -Credentials $cred -TargetWebUrl $targetWebUrl
    Get-SPOMigrationJobStatus -TargetWebUrl $TargetWebUrl -Credentials $cred

    Regards,

    Amit

    Amit Chhatbar supported this idea  · 

Feedback and Knowledge Base