how to move files from one sharepoint site to another?

Samuel Santos 250 Reputation points
2024-02-19T18:34:21.1566667+00:00

I needed to move files that are in a folder on a SharePoint site to another SharePoint site, is there any way to transfer this data without having to download it locally and then upload it again?

Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. LuisD 70 Reputation points
    2024-02-19T19:09:02.3+00:00

    @Samuel Santos,

    Method 1: Using SharePoint Web Interface

    Open Both SharePoint Sites:

    • Navigate to the source SharePoint site where the files are currently located.
      • Open the document library or folder containing the files.
      Select and Copy: - Select the files you want to move. - Use the "Copy to" or "Move to" option, which can usually be found in the toolbar or context menu.

    Choose Destination:

    • Navigate to the destination SharePoint site.
    • Open the document library or folder where you want to move the files.
      • Use the "Paste" option to complete the move.

    Method 2: Using SharePoint PowerShell Commands

    1. Install SharePoint Online Management Shell:
    2. Connect to SharePoint Sites:
    • Open SharePoint Online Management Shell.
      • Connect to both the source and destination SharePoint sites using the following commands:
        Connect-SPOService -Url https://<source-site-url> -Credential <YourCredentials>
        Connect-SPOService -Url https://<destination-site-url> -Credential <YourCredentials>
        
       
    
    

    Use Move-SPOFile Command:

    • Use the Move-SPOFile command to move files between sites:
      powershellCopy code
      Move-SPOFile -SourceUrl "/sites/SourceSite/Shared Documents/File.txt" -TargetUrl "/sites/DestinationSite/Shared Documents/" -Force
      
    

    Replace the source and destination URLs and file names accordingly.

    Best regards, Luis.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.