Forum Discussion
Automating File Sync Using OneDrive to SharePoint
Thanks SanthoshB1 for the response. I guess the lead which you had shared would create replica of the files which are newly created in Document Library. What I was looking is the other way.
Basically there will be a script which reads data from other system and will push to SharePoint. The source system will also have the same hierarchy / folde structure as that of SharePoint. Hence I was thinking if we could automate the process using OneDrive, we don't need to depend on any kinds of scripting which will cause the maintenance overhead later.
Correct me please if my understanding is wrong.
- Arjun MenonMay 22, 2017Copper Contributor
It is like a migration from my file system to SharePoint. There is another service which pulls files from legacy system and place in local system. From there, I want an automation mechanism to push those files automatically to SharePoint Online document library. I hope you understand the flow now.
- SanthoshB1May 22, 2017Bronze Contributor
You can use the PnP script from below link for this purpose.
https://gallery.technet.microsoft.com/Bulk-upload-the-files-from-8932fc26
Also I would recommend you to go through the similar discussion from below link for limitations and how to overcome those in the script.
HTH.
- Arjun MenonMay 23, 2017Copper Contributor
Thanks for the lead. I did come across scripts using CSOM as well using PowerShell which can suffice the requirement. I was more or less trying to reduce the maintainability effort since any modification in hierarchy would need to alter the scripts as well which was not something which I was looking for.
Anyways thanks a lot for the leads. Appreciate it.