macOS Backup – Which Folders Should Be Copied for Manual Backup?

backupmacos

I know that Time Machine and various backup softwares can be used to save some or all Mac data.

However, if I don't want to use any of them and simply copy data to an external hard drive, which folders should be saved?

The only list of suggested folders to backup that I found is this one:

  • Macintosh HD/Users/ : users data
  • Macintosh HD/Applications : (optional) applications
  • Macintosh HD/Library/ : (optional) some applications preferences

Is this accurate or is there any other folder that should be copied ?

Best Answer

Like most things in life, I think it depends :-)

At one extreme, you might want to back up absolutely everything, so that in the case of a disk failure you can restore to precisely where you were: every app, file, setting, configuration, &c.  This isn't really practical to do manually.  (It'd need root access, knowing exactly which vm/cache files to exclude, what to sync first, &c.)  I use Carbon Copy Cloner and SuperDuper! to create clones, and Time Machine for incremental backups.

At the other extreme, you might only want to back up the most irreplaceable files (e.g. documents and/or photos).  This should be easiest, but will of course require the most work in the case of a failure (re-downloading and reinstalling apps, re-setting up all the config, &c).  For this, you'll know where the files are; it's easy to drag them to another drive.

For something in the middle, it depends what you might have changed and how much effort you want to put in…

I think the question has already given the three most important areas: if you back up /Users, /Applications, and /Library, then you'll probably include all the important stuff for most people.

If there's anything vital elsewhere, then you'll probably know about it, because you'll have set it up yourself!  Examples might include: programs you've compiled and installed in /usr/local (or got Homebrew &c to do for you); hosts file entries you've added to /etc/hosts; directories you've created under /; locales you created in /usr/local/share/locale; daily/weekly/monthly scripts you created or linked under /etc/periodic/; a message-of-the-day you wrote to /etc/motd; and so on.  (If you've disabled System Integrity Protection, you could even write under /bin or /usr/bin…)

Also bear in mind that apps, drivers, and anything else that's not plain data will need care to preserve user, group, permissions, ACLs, &c; most external filesystems won't fully support all of those.  And you may need root access to back up and/or restore some things.  All in all, it's much easier to leave it to a dedicated program!


Finally, this is a good opportunity to remind everyone of the importance of backups.  There's no single correct strategy; everyone's needs are different.  But please think about what would happen if a disk died, and do as much or as little as you need to prevent that becoming a disaster.