Sub topic 5
Syncing Desktop and Documents
This chapter assumes you have turned on iCloud Drive on your Mac and can open System Settings and Finder. It covers what changes when you sync the Desktop and Documents folders, how to configure the choice, and what happens when you reverse it.
What the setting does
Normally your Desktop and Documents folders live only on your Mac's disk. When you turn on Desktop & Documents Folders, macOS moves their contents into iCloud Drive. Those items then follow the same rules as the rest of iCloud Drive. They upload to the cloud, appear on your other devices, and count against your iCloud storage.
The folders still look the same on your Mac. The Desktop stays on your desktop, and ~/Desktop and ~/Documents still work as paths in Terminal and in apps. Only where the data is stored and synced has changed.
Turning it on
- Open System Settings and click your name at the top of the sidebar.
- Click iCloud, then Drive.
- Turn on Sync this Mac if it is not already on.
- Turn on Desktop & Documents Folders.
Wording varies a little between macOS versions. On older versions, you click Options next to iCloud Drive and tick the Desktop and Documents checkbox.
Before you switch it on, check your storage. A Documents folder with 80 GB of video will not fit in a free 5 GB plan, and uploads will stall. Review the quota from the earlier chapter first.
Using it on more than one Mac
If a second Mac also syncs Desktop and Documents, both Macs share one Desktop and one Documents folder. Files from each Mac are combined. When two items would collide, macOS may keep them in a folder named after the Mac they came from. Check for such folders after you enable the setting on a second machine.
Turning it off
When you turn the setting off, macOS asks what to do. The files stay in iCloud Drive, and your Mac gets new, empty Desktop and Documents folders. Nothing is deleted. To get the files back on the Mac, open iCloud Drive in Finder and drag them back to the local folders.
Good fits and poor fits
| Folder content | Sync it? | Reason |
|---|---|---|
| Office documents, PDFs, notes | Yes | Small files you want on every device |
| Photos you edit on several devices | Usually | Works well, but watch your quota |
| Source code with `node_modules` | No | Thousands of tiny files slow syncing |
| Virtual machine disks, large caches | No | Huge files that change constantly |
If you keep projects in Documents but want some folders left out, use the .nosync suffix described in a later chapter.
Common problems
- The setting is greyed out or fails. You may be signed in to the wrong Apple Account, or iCloud Drive itself is off.
- Desktop icons seem to disappear on a second Mac. The folders are merged, so items may have moved into a Mac-named folder.
- The Mac runs low on disk space. Files sync, but local copies still take room until Optimize Mac Storage removes them. That setting has its own chapter.
Exercise
You turn off Desktop & Documents Folders on your Mac. What happens to the files that were in those folders?
Show answer
They stay in iCloud Drive and are not deleted. The Mac gets new, empty Desktop and Documents folders. To use the old files locally again, copy or drag them from iCloud Drive back into those folders.