Backup

Briefly:

Understand your risks 
Back up more than one way
Time Machine isn't an archive
Get AppleCare

Of all the bad things that could happen to your computer, a disk crash is the most likely. A friend had a lot of great Photoshop pictures on her hard drive, and then one day her machine would not boot: the hard disk was dead, and she had no backup. She was lucky and got her files back. The same thing happened to me in October 2008; my 10 month old computer made a funny noise and wouldn't boot. All my files were lost! I got a new drive (under AppleCare warranty), restored from backup, and didn't lose a thing. If you have any important data that's stored on just one device, you should feel nervous. Hard disks are built to last a few years but can crash at any time.

The second most likely problem is mistakenly deleting files. Delete cautiously.

See Frequently Asked Questions about Time Machine and Backup.

If you care about the files on your computer, do more than one of the following.

connection diagram

Backup to external hard drive

Buy a big cheap external drive (I like LaCie drives). Enable OSX Time Machine. This will help if your hard drive crashes or if you delete something and then wish you had not.

connection diagram

Apple sells the Time Capsule, a version of the Airport Extreme wireless router that also includes a big disk drive. You can back up one or more Macs to this device; they share the space on the disk. The Macs do not have to be on the same version of Mac OS X.

connection diagram

What Time Machine Does

When you first start it, Time Machine copies all of your files to the backup volume. Then, every hour, Time Machine copies the files changed since the last scan to the external drive. (Starting with OSX Lion, portable Macs can keep some snapshots on the local hard disk.) It keeps the old copies, up to one every hour for the current day, the most recent one for the previous 30 days, and as many weekly backups as it has room for on disk for previous months. (For example, my backup for this computer currently has about a year's changes.)

If you delete a file, Time Machine notes when it was deleted, but does not delete the file's previous backups, so when you "enter Time Machine" to retrieve a file, you can look back in history to a time when the file existed, and restore it.

What You Can Do With Time Machine

Time machine will be useful in two situations:

On a portable Mac running Lion or later, Time Machine will create hourly " local snapshots" when your computer is disconnected from its backup drive. Local Snapshots are periodically reduced to one per day after 24 hours, then deleted after a week. If your disk starts to fill up, Time Machine will free up space by deleting old snapshots. These local snapshots are useful for getting a file back if you destroy it by accident, but they won't help if your hard disk crashes, because they are on the same disk. (You can turn local snapshots on or off with the tmutil command.)

Time Machine (starting with Mountain Lion) can rotate its hourly backups to more than one external disk. (Thanks to the late James Pond, who shared much useful info on OS X backup.) James Pond also wrote a useful set of Time Machine troubleshooting articles.

What Time Machine Does Not Do

Time Machine is not designed to provide "archival" storage that lasts forever. It takes and keeps snapshots on its own schedule, which you can't change, and it may not preserve the version you think is really important. Don't delete things from your hard drive because you think "Time Machine has them." Files you want to keep "forever" (like raw pictures) should be backed up to CDs or DVDs, or to a separate hard drive, or to the cloud, or all three.

Sometimes Time Machine will tell you its storage is corrupt and you have to start over: it may say "Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you." Time machine may also start the whole backup over when a new Mac OS version changes the backup format. If your Time Machine drive has to be replaced, or a computer repair changes your main logic board's MAC address, you will also have to start over with backups. This isn't much of a problem, if you are mostly using Time Machine to protect against disk crashes: you have one unprotected period until the first backup completes, and you lose the ability to undelete. But if your only copy of a file is in Time Machine, you could lose it.

Clone Your Hard Disk to an External Drive

Besides using Time Machine, backing up to an external hard drive is a good idea. External hard drives are inexpensive (compared to the cost of your computer): occasionally, copy every file you care about to one. Use a utility like SuperDuper or Carbon Copy Cloner. Such a backup will be pretty safe if you then dismount the drive correctly, power it off, and put it away. (If you are really cautious, you could store the drive offsite.)

When you are installing a new major release of the operating system, or modifying your hardware, or taking your machine in to the Apple Store for service, you should make a clone backup of your entire hard disk onto another external hard drive. Then, if anything goes wrong, you can restore the copy and be back where you started. If you ever suspect that your hard disk is failing, do this right away.

Encrypting and Password Protecting an External Drive

If you are copying information to an external drive, either hard disk or Flash memory, it is a good idea to encrypt its contents. This information comes from an anonymous poster on www.macintouch.com on 16 Dec 2014.

Backup to CD/DVD disc

You should still occasionally back up important data to a write-only removeable disc. Here is how to burn CDs or DVDs, using the Finder, to back up your precious data to disc. (If your Mac doesn't have a CD-ROM drive, buy an Apple external drive.)

  1. Start by cleaning your CD drive.
  2. Insert a blank CD-R, DVD-R, or dual-layer DVD-R into the drive. A dialog box will pop up. Choose open Finder and name the disc something like "tvv-20040131".
  3. A Finder window will open. The new disc will show up in the bottom pane of the left sidebar.
  4. Drag files and directories to the blank disc's name. You'll get a progress thermometer.
  5. Gotcha: you can't just drag your home directory to the disc and hit Burn. Two reasons: one is that there are sometimes some files deep in your ~/Library/Preferences that are only readable by root, not by you, and the Mac DVD burning software will abort the whole burn rather than keep going, if it encounters a file it can't read. Second reason is that a few files in your ~/Library are created and deleted automatically by the system while other processing is going on, and if a burn sees any file vanish while it is running, it will abort. You can back up home directory files but don't try ~/Library; you will end up making a coaster.
  6. A CD holds 650MB. A DVD holds about 4.29 GB, dual-layer about 8GB. (Dual-layer discs burn much more slowly.) If you buy a Blu-Ray drive, you can store 25GB on a single-layer disc, 50GB on a dual-layer disc, 100GB on a triple-layer disc, and 128GB on a quad-layer disc. (I'm not sure how long it takes to burn these discs.) If you click on the disk's icon in the Finder window sidebar it'll tell you how much room is left at the bottom of the window.
  7. When you've dragged enough, click the "Burn" icon. (Little Civil Defense symbol.)
  8. Wait. Don't delete or move any files that are to be burned onto the disc until the burn finishes, or you will "make a coaster."
  9. Eject the disc, write the date on it, and store it away.

(You can set up a "burn folder" that burns the same stuff each time.)

Back up iTunes

  1. Run iTunes.
  2. Create a playlist with everything in it.
  3. Right-click on the playlist and select Burn Playlist To Disk. Select Data Disc. After you click Burn, it will ask if you want to make multiple discs if it won't all fit on one. Keep feeding blank discs till it's done. You can use DVDs instead of CDs.

You may assume that you don't need to back up your iTunes library contents, because you can re-download it from wherever you bought it in case of disaster. There are some gotchas though: some media providers may change their rules, or not permit re-downloading, or you may need account or password data in order to get the data.

Back up iPhoto/Photos

iPhoto and Photos files are backed up to Time Machine only when the app is not open, and as mentioned above, Time Machine may discard all your backups with no advance warning. You can also store your "Photo Stream" in iCloud, as described below. But it is a good idea to also back up your Photos or iPhoto library to external disk or DVD. Apple provides no simple way to do this; here is what I do.

You now have one (huge) disc image file that contains your entire Photos library, including all metadata. You can split the .dmg file into multiple segments small enough to fit each on a CD or DVD using a Terminal command like hdiutil convert bigimage.dmg -format UDRO -segmentSize 650m -o splitimage.dmg and burn each to a separate disc. To restore, copy all the disc contents onto a hard drive, double click the first segment, and they will be reassembled. You will need enough free disk space for more than twice the size of your Pictures folder.

Backup to External Flash

You can also back up files to a USB stick or SD card. Some recent models of MacBook Pro have a builtin SD card slot; other Macs would use an external card adapter. You can copy files to the external device using the Finder, as described above. External flash memory devices like this can hold very large amounts of data in a small space. A 128GB SDXC card costs less than $60. You can use a Micro SD card with an adapter. Here is an article on using the SD slot. You can simply plug in the USB stick or insert the SD card; it will appear in the Finder and you can drag files and folders to it.

Automating Backup to Flash

If you want a simpler way to back up your files, you can create a little script. I run a shell script in a Terminal window that uses the rsync command to copy files I want to back up onto an external flash device. The rsync command comes with the (free) Xcode command line tools from Apple. rsync is very fast and doesn't copy files that are already there.

You can make a little AppleScript file (one for each SD card) that backs up selected directories to your card, and just double-click an icon to do a backup. For example, to back up the directory "Documents" to a card named "SDXC_01", create an AppleScript that says

	on run
	    do shell script "rsync -avz --exclude .DS_Store $HOME/Documents /Volumes/SDXC_01/"
	    display dialog "done"
	end run

To back up the contents of "Documents",

  1. Insert the SD card
  2. Double click the AppleScript file Backup_01.app
  3. Wait till it finishes
  4. Unmount the SD card in the finder
  5. remove the SD card

Offsite Backup

You should store a backup copy of your files outside the house. That way if your computer equipment is damaged, lost, or stolen, you can get your data back.

Backup to iCloud

OS X includes the ability to sync information to the Apple iCloud service, starting with Lion. You log into it with your AppleID. It gives you 5GB of free storage, and you can buy more. iCloud can store your iTunes music and Photos/iPhoto pictures, mail, calendar, contacts, Safari bookmarks, and documents written by Apple iWork, and make them available on all your Apple devices. This is not a general tool for backing up all your Mac data files: it would not protect your Word and Quicken files, for example.

iCloud web page

Apple's page about How to Back Up iCloud Data suggests ways to keep copies of your iCloud data somewhere else besides iCloud.

Backup to Amazon Cloud Storage Using JungleDisk

You can back up your Mac files to cheap cloud storage provided by Amazon Web Services. First, get a Simple Storage Service (S3) account from Amazon (the first 5GB is free). Then, install JungleDisk, a $20 Mac program that makes a backup copy of files you choose over the Internet to the S3 service. Once you set up JungleDisk, you can click an icon to run a backup anything that has changed: it has options to run automatically. I use this program to back up most of my hard drive a couple of times a month. I have configured JungleDisk to not use too much bandwidth, to avoid sanctions from the cable company. (It won't back up huge files, like Parallels disk images, which is OK with me.)

JungleDisk window

There are other cloud backup services that you could use instead... try Googling. I have not tried Carbonite, Mozy, Arq, etc.

Dropbox

You can use Dropbox to back up a few crucial files over the Internet to the cloud manually. Just drag your file to your dropbox, and it will be copied over the Internet to an offsite server. This works for small numbers of files, and can be used even if you are traveling with your computer, away from your Time Machine but with good bandwidth. Understand that Dropbox is less secure than using JungleDisk. You can get Dropbox apps for many different operating systems, including Linux, Windows, and iPhone. 2GB of storage is free. The app is free. 50GB is $99/year. I use Dropbox for file sharing, but not for backup.

Backup to Google Drive or Amazon Cloud Drive

I have not tried these services yet. Both give you 5GB free, and can buy more. They may make sense if your computer has good Internet connectivity most of the time.

Physical Copies

If your Internet connection is low-speed, it might take weeks to copy your files to a server in the cloud. In this case, you should burn a copy of your precious files to CD or DVD, or onto a portable hard disk, and put the copy somewhere safe. (For example, a safe deposit box, or a trusted friend's house.) You have to be systematic about doing this backup often enough that important files will be saved. Programs such as Data Backup can help you make these copies efficiently: it is shareware and is sometimes included with external drives.

Application Backup

Some OS settings are not restored when you reload a Time Machine backup. For these, you should also keep specific backup files.

Battery Backup

Speaking of backup... I use a desktop Uninterruptible Power Supply (UPS) to keep non-laptop machines, cable modem, and backup drive running if the power should flicker. This setup has saved me from crashes and hardware damage.

Home | FAQ © 2010-2017, Tom Van Vleck updated 2017-03-09 16:41