if this is one time operation then you may try this: open parent doclib in SPO in Explorer and copy it manually to local file system (like in regular Windows Explorer with copy/paste) or use Sync command to do the same: View SharePoint files in File Explorer. After that open target doclib in SP onprem also in Windows Explorer and paste folder there from your local file system via WebDav.
How to copy a folder from SP online to SP onprem using PowerShell
I have a folder call "General" in my SharePoint Online site. It's about 16GB and a lot of nested folders inside it. I wanted to copy that folder(including all the nested folders) to a different SharePoint Onprem site while it preserved all the data such as created date, modified date..etc using PowerShell so just wondering if anybody know where I might be able to find a PowerShell script that does that?.
Any suggestion will be really appreciated.
2 answers
Sort by: Newest
-
-
RaytheonXie_MSFT 31,606 Reputation points Microsoft Vendor
2022-04-12T06:28:02.497+00:00 Hi @Aase Nomad ,
As far as I know, Microsoft does not provide a method that moving files from SharePoint Online to on-premises environment. You will need to use a 3rd party tool such as ShareGate.While Microsoft supports and encourages open-source software development, it does not provide technical support for the softwares from third parties, nor does it guarantee that the software will work as described.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.