...
Open up File Explorer, or “Finder” in macOS, and navigate to your OneDrive folder.
There should be a shortcut to your OneDrive in the left hand menu.
On your keyboard, press Ctrl + A , (or Cmd Command + A , on macOS) to select all of your OneDrive items.
Alternatively, you can select the first item in the list, hold the Shift key, and then select the last item to select all of the items.If you have any shortcuts to SharePoint sites, deselect them at this time.
While holding Ctrl on your keyboard, click on Shortcuts to deselect them.
Alternatively, if available, you can uncheck the boxes next to these items to deselect them.
These items are marked with a chain link icon to remind you that they are simply links to another location.
Right click on any of the highlighted files and choose Always keep on this device.
OneDrive will now start to download all selected files and folders onto your computer.
If your computer goes to sleep or is shutdown, this download task will resume once your computer is running again.Click on the OneDrive cloud icon to view the progress of you download.
In Windows, find the blue OneDrive icon near your system clock.
In macOS, the cloud icon will be in your top menu toolbar.
Once the files have finished downloading, sign out of OneDrive.
Again, click on the cloud icon and then click on the Settings gear. Click on Quit OneDrive.
This will disconnect your computer from the cloud. Now, changes made to your account (such as new files created, or account deletion) will not affect your computer.
...