MacOS – Making a full image of an installed system

backuphard drivemacos

I'd like to know if is possible to make a full, bootable, and restorable image of an entire Yosemite installed system, (that is, with all installed apps and settings) without using a commercial software like Carbon Copy Cloner (which is no longer free, indeed).

I found those threads:
Creating a OS backup image for an easy restore on a new system
and
How do I make a bootable USB flash drive a Mac?

but both seem to propose recipes to create a bootable OS X thumb drive along with a set of basic tools, while I require a method to perform a full image of my installation.

Thanks a lot.

Best Answer

I think this is what you are meaning.

In terminal type in sudo dd if="/dev/disk0" of="/volumes/<volume>/image.img"

Warning

Entering this command wrong could render your computer useless.

Info

disk0 is the hard drive of your Mac and <volume> is the name of your external drive and image.img is the name of the file you will create

To restore go to internet recovery and swap the if and of arguments.

This will also backup any partitions you have on your computer. This means if you have boot camp setup it will also backup and restore windows too. Bonus!

Disclaimer
I am not responsible for any damage that you cause to your system when entering in this command. Research the use of the dd command if you are not sure how this works before proceeding.