Tech Reflect
  • Home
  • About This Site
  • Contact Me
  • Search Icon

Tech Reflect

Reflecting on 25 years in tech

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 in an attempt to restore one file. Some network backup solutions don’t back up iCloud Drive so you may have to manually configure them to do so

Manual backups

Backing up iCloud Drive yourself is an option.

Time Machine DOES backup iCloud Drive. However, Time Machine’s backup schedule is not predetermined. However, 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 but maybe you’ll have better luck.

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='path/to/' --link-dest="<previous backup folder path>" /Users/admin/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.

Related posts:

Curly braces on the command line
Using "Marks" in Terminal
Doing something with the "find" command
Delete previous word or path item in Terminal
Jumping between Terminal and Finder
Editing text with Cocoa text shortcuts

macOS tips

Post navigation

NEXT
Hot corners + modifiers
PREVIOUS
Create a test file of a certain size

Follow Me

Get Monthly Updates

About Me

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

Contact Me

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
  • Little Dinosaur
  • Contact Me

Recent Posts

  • Getting paid to watch porn
  • Is App Library for me?
  • Tim Cook and the SF Gay Pride Parade
  • The first day we printed something in Mac OS X
  • Except for getting punched by Steve Jobs…

Categories

  • analog (1)
  • apple career (11)
  • apple inside (8)
  • apple stories (18)
  • bertrand serlet (3)
  • essays (15)
  • geeky (21)
  • iOS tips (3)
  • macOS tips (37)
  • personal (7)
  • products (3)
  • prototypes (2)
  • scott forstall (6)
  • scripting (1)
  • steve jobs (11)
  • tim cook (1)
  • workplace (14)

Archives

  • January 2021
  • December 2020
  • October 2020
  • August 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017

Most Liked Content

  • Why I left Apple (2019)
  • Aperture: Senior QA (2004-2005)
  • The last time I saw Steve Jobs
  • Desktop Pictures taken by Steve Jobs
  • How I ended up at Apple (1999)

Get Monthly Updates

About Me

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

Contact Me

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
  • Little Dinosaur
  • Contact Me
© 2021   All Rights Reserved.