How to use OneDrive to Backup your Mac Desktop and Documents
How to Sync Mac Desktop, Document with OneDrive OR OneDrive Business.
Like most of you reading this article, you are probably using OneDrive as your cloud document storage but can’t force the desktop, document or other folders on your MAC to sync with it. This short tutorial will show you how to do that. Before going any further I would like to credit Chris Hoffman @ How to Geek for his article on how to use Symbolic Links. After reading his article we use the same method to force Mac personal folders to sync with OneDrive or OneDrive Business. Please read his article to better understand Symbolic Links.
- Terminal application
- Source: Have the folder patch you want to sync with OneDrive ready or written notes
- Destination: Have the folder patch you want to store your local folders in OneDrive ready or written notes
- 5-10 minutes of your time.
Open Terminal application:
Press Command + Space, type “Terminal”, and then press “Enter” to open Terminal from Spotlight search.
From the top right search icon type “Terminal” and then press “Enter” to open Terminal
In Finder go to “Applications / Utilities / Terminal to launch it
Type the following commend in the Terminal:
ln -s /Users/username/Desktop /Users/username/”OneDrive – Company”/MBP
Whereas “username” is your account name. Note there is a space between the first (source) and second (Destination) patch name. Notice also the bracket in “OneDrive – Company”, this is because OneDrive for Business may have your company name with spaces. If you type the path without the brackets, it won’t find it. So, add brackets if you have spaces in your path name.
Another example with picture below.
Once your Symbolic link is created, OneDrive will see the files/folders and start uploading the content. You simply have to continue working on your desktop, documents or any other folder and Onedrive will pick the files/folders and sync them