Following are the steps to migrate SharePoint 2010 to SharePoint Online
Step 1: Export the data from the SharePoint 2010 environment using Export-SPWeb.
Go to the start menu, and run the SharePoint 2010 Management Shell as Administrator
Now, run the following command:
Export-SPWeb -Identity “http://<On-PremSPSite>” -ItemUrl “/OnPremDocLib” -Path “C:\SPOnPremExport” -NoFileCompression -IncludeVersions 4
Note: Replace the Web URL and the Document Library with your own URL and Library name.
After completing it successfully, you will see that a folder has been created
Create a new XML file in the above exported folder with the name: LookupListMap.xml and add the following lines to the file:
<?xml version=”1.0″ encoding=”utf-8″?>
< LookupLists xmlns=”urn:deployment-lookuplistmap-schema”/>
Step 2: Convert the Exported package to the SPO Migration Package using the SharePoint Online Management Shell.
Copy contents of the export folder to a new path: “C:\migrationpackages\SPOTemp”.
Then, run SharePoint Online Management Shell as Administrator.
Within the ISE, write the following command: Connect-SPOService
After executing this command successfully, enter the Tenant Admin username and Password.
Now, run the following command:
Step 3: Upload the SPO Migration Package to your Azure Storage account.
Write the following command:
$azurelocations = Set-SPOMigrationPackageAzureSource -SourceFilesPath “C:\MigrationPackages\SPOTEMP” -SourcePackagePath “C:\MigrationPackages\SPOutPutPackage” -FileContainerName migration-files -PackageContainerName migration-package -AccountName “yourstoragestorage” -AccountKey “AZURE STORAGE KEY”
From the Azure portal, obtain your Azure Storage Key and Storage Name.
Enter your Office 365 environment credentials.
Step 4: Submit the Migration Job.
Submit the job by entering the following command:
Then refresh your document library within office 365, and you will see that content has been migrated.
I hope this information will be helpful!
Mark Wilson