Tech Reflect
  • Home
  • About This Site
  • Contact me
  • Search Icon
Backing up iCloud Drive

Backing up iCloud Drive

2018-04-13

Whether it be user error or a bug, it’s definitely possible to lose data on iCloud Drive. If you keep important data there, personal or otherwise, it’s important to know a few things.

While Apple does backup iCloud Drive, the frequency may not suit you. A restore may also overwrite other files you’ve changed since the last backup if you are really wanting to restore just one file. Some network backup solutions don’t back up iCloud Drive so you may have to manually configure them to do so. Backblaze does back it up.

Manual backups

Backing up iCloud Drive yourself is an option. Simply copy the path below via Terminal or Finder to either a separate location on your local drive or to an external or network drive:

~/Library/Mobile\ Documents

Time Machine DOES backup iCloud Drive. However, Time Machine’s backup schedule is not predetermined. It’s possible to turn off Time Machine and then manually back up using the tmutil command. I’ll be honest and say that I’ve found this route to be frustrating, so I hesitate to even comment on it.

The crazy option

I have a script set up to run every 4 hours that does a Time Machine style backup, using hard links to save space. Note that you can do APFS snapshots using tmutil or rsync, but this doesn’t provide complete protection from data loss.

Here’s an example of an rsync command that will do an initial backup to an attached hard drive, then incremental backups after that, provided that you provide the previous backup folder path.

rsync -avhz --delete --delete-excluded --exclude='<list of paths to exclude>' --link-dest="<previous backup folder path>" ~/Library/Mobile\ Documents/ "<new backup folder path>"

I have something like this as part of a larger script that names folders and culls out old backups. So, if you’re comfortable with rsync, it may be a nice hard-core option for you.


macOS tips

Post navigation

NEXT
Hot corners + modifiers
PREVIOUS
Create a test file of a certain size
Comments are closed.

Get Monthly Updates

Recent Posts

  • Inserting random email sigs in Mail on iOS
  • Keep Instagram open to finish posting…
  • How I predicted the rise of Twitter, barely used it, and amassed 35,000 followers
  • Apple Books 2022, in pictures
  • Killing one bird with two-and-a-half stones in Mac OS X Mail

Categories

  • analog (1)
  • apple career (12)
  • apple inside (19)
  • apple stories (20)
  • bertrand serlet (3)
  • bugs (3)
  • essays (15)
  • geeky (21)
  • interviews (4)
  • iOS tips (4)
  • Mac OS X (7)
  • macOS tips (36)
  • personal (8)
  • predictions (1)
  • products (5)
  • prototypes (6)
  • scott forstall (7)
  • scripting (2)
  • siri (2)
  • steve jobs (16)
  • tim cook (1)
  • workplace (15)

Get Monthly Updates

About cricket


Me with Guiness the owl

25 years in tech. I like to write manifestos. I like to offer interesting tips. I like making fun of things. Everyone copes differently.

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
© 2025   All Rights Reserved.