I have a script that I was using in July that no longer works. Basically it maps a drive (W:) to my OneDrive for Business folder. Then it performs a robocopy to copy it to a local disk for backup (direct from cloud). The issue I am having is that now it actually cleared out all of my data because it is located in a sub-folder and Robocopy no longer wants to traverse to that sub-folder and beyond to copy data.
ODB contents looks like this:
W:\
W:\Data
W:\Data\Sub1
W:\Data\Sub2
W:\Doc.docx
Run robocopy as such:
robocopy w: e: *.* /mir
The result is:
E:\
E:\Data
E:\Doc.docx