I want all users on my SharePoint Online 2013 (plan 2) to be able to 'drop' files in a SharePoint folder, after which an unattended process downloads these files onto a local folder on a Windows Server 2012 and then deletes them from SPO.
The only way I can think of of doing this is through a scheduled PowerShell script. So I am looking for a script that can move all files in a specific folder on SharePoint Online 2013 to a local folder. After downloading I want these files removed from SharePoint. This whole process should be able to run unattended.
Is this the right way to go? Who can point me towards examples / documentation?