Sub topic 15
Good habits and limits to know
This chapter pulls the earlier material together into working habits. It also lists the limits of iCloud Drive that cause most surprises. It assumes you have an Apple Account, can use Finder and System Settings, and have already met Optimize Mac Storage, the status icons, Keep Downloaded, Remove Download, sharing, version history, and the .nosync suffix from earlier chapters.
What iCloud Drive is and is not
iCloud Drive is a sync service. When you change a file on one device, the change is uploaded and then applied on your other devices. That has a consequence people often miss: deleting a file on one device deletes it on the others. A synced copy is not a backup.
A backup keeps older states of your data in a separate place that a mistake cannot reach. iCloud Drive gives you some recovery tools. These include version history for supported apps and the Recently Deleted folder, which keeps removed items for a limited time. They do not replace Time Machine or another backup.
Habits that prevent most problems
Check the account and quota first
Before you rely on iCloud Drive, confirm two things in System Settings, under your name and then iCloud.
- The Apple Account shown is the one you intend to use. A Mac signed in to a different account than your iPhone will never show the same files.
- The storage bar has room. The quota is shared with iCloud Photos, iCloud Backup, and Mail. When the quota is full, uploads stop and files stay marked as waiting.
Check the quota on a schedule, not only when something breaks. Free space shrinks quietly as photos and device backups grow.
Decide on Desktop and Documents deliberately
Syncing Desktop and Documents moves those folders into iCloud Drive. This is convenient, but it changes where your files live. Consider it when:
- You use more than one Mac or want the same files on an iPhone or iPad.
- Your quota is large enough to hold both folders with room to spare.
Leave it off when your Desktop holds large working files, such as video projects, disk images, or virtual machines. Those files upload slowly, can fill your quota, and are exactly the kind that conflict when two devices touch them.
Use Optimize Mac Storage with intent
Optimize Mac Storage lets macOS replace local copies with cloud-only placeholders when disk space runs low. It works well on a laptop with a small disk. The risk is that a file you need offline may be evicted just before a flight or a meeting.
The fix is the explicit control you already know:
- Right-click a file or folder and choose Keep Downloaded for anything you must have offline.
- Choose Remove Download to free space on items you rarely open.
Folders set to Keep Downloaded count against local disk space, so use this for a short list, not your whole drive.
Read the icons before you act
When a file looks missing or out of date, look at its status icon before doing anything else.
| What you see | Meaning | Sensible action |
|---|---|---|
| Cloud with a down arrow | The file is only in the cloud | Open it, or choose Keep Downloaded, while online |
| Circle with progress | Upload or download in progress | Wait, and keep the Mac awake and online |
| Cloud with an exclamation mark or an error | The upload or download failed | Check quota, name, and connection |
| No icon | The file is stored locally and in sync | None |
Most "missing file" reports are cloud-only placeholders that need a connection to open.
Limits to know
Names and paths
Some characters and very long names can fail to sync. Colons and slashes cause trouble because different systems treat them differently. A leading period hides a file in Finder and many tools. Keep names short and plain. Avoid placing deeply nested folder trees in iCloud Drive.
Files that fit poorly
iCloud Drive handles documents well. It handles some other things badly:
- Dependency and build folders such as
node_modules, virtual environments, and build output. They contain thousands of small files that change constantly. Syncing them is slow and can stall the whole queue. - Git repositories. The
.gitfolder changes in many small steps, and two devices can write to it at once. This risks a corrupted repository. Keep repositories outside iCloud Drive and use a remote such as a Git host for sharing. - Databases and open application bundles. Apps that write continuously to one file can conflict with the sync process.
- Very large single files. They work, but they use quota and take a long time to move.
For a folder that must stay in iCloud Drive but should not upload its contents, rename it with the .nosync suffix and link it under the original name.
mv node_modules node_modules.nosync
ln -s node_modules.nosync node_modulesThe first line makes iCloud skip the folder. The second line creates a symbolic link, a small pointer file, so tools that look for node_modules still find it. Note that the folder is then no longer synced, so it will not appear on your other devices. Tools that pick up the link on another Mac will find a broken pointer until that Mac rebuilds the folder.
Conflicts and simultaneous editing
If two devices change the same file while offline, iCloud Drive cannot merge them for most file types. It keeps both versions, and you may see a second copy with a device name in the file name. You then compare the two and keep the right one. Apps that support iCloud documents, such as Pages and Numbers, offer a version browser. Use it before deleting either copy.
To avoid conflicts:
- Let a sync finish before you edit the same file on another device.
- Use real collaboration through a shared file in an app that supports it, not two people editing separate copies.
- Close a document on one device before opening it on another when you are working offline.
Sharing limits
When you share a file or folder, you decide whether collaborators can edit or only view, and whether anyone with the link can open it. Shared items can use the owner's quota. Removing someone's access or stopping sharing changes what they see, but it cannot recall a copy they already downloaded. Review who has access to shared folders from time to time, especially after a project ends.
Timing and networks
Sync is not instant. Large files, a slow upload speed, Low Data Mode, and a Mac that sleeps can all delay it. A Mac on a metered or restricted network may pause transfers. If you need a file elsewhere right now, check that it shows as fully uploaded before you leave the first device.
A routine you can keep
Apply the same order each time: icon, quota, network and file name, then a restart. Avoid the common shortcut of signing out of iCloud as a first move. Signing out can remove local copies of items and makes things harder to diagnose.
Summary of good habits
- Treat iCloud Drive as sync, and keep a separate backup.
- Confirm the Apple Account and watch the quota.
- Sync Desktop and Documents only when the size and use justify it.
- Mark offline-critical files with Keep Downloaded.
- Keep code repositories, dependency folders, and databases out of iCloud Drive.
- Read the status icon before changing anything.
- Let sync finish before you switch devices, and resolve conflicts by comparing versions.
Exercise
You keep a project in ~/Documents with Desktop and Documents syncing turned on. It contains a node_modules folder with thousands of files, and sync has been slow for hours. You still need node_modules to work in place. What two Terminal commands would you run from the project folder, and what is one effect on your other devices?
Show answer
Run mv node_modules node_modules.nosync and then ln -s node_modules.nosync node_modules. The first command renames the folder with the .nosync suffix so iCloud skips it. The second creates a symbolic link under the original name so tools still find it. The effect is that the dependencies no longer sync, so other devices must rebuild them, for example with npm install.
Exercise
A colleague says, "I keep my only copy of my thesis in iCloud Drive, so it is backed up." Give two reasons this is not a complete backup strategy.
Show answer
iCloud Drive mirrors changes, so deleting or corrupting a file on one device also removes or damages it on the others. Version history and Recently Deleted cover only some apps and a limited time. A separate backup, such as Time Machine to an external disk, keeps independent older copies.