Mac Disk Image Backup

broken image


  1. Mac Disk Image Backup Disk
  2. Restore Disk Image Mac
  3. Mac Disk Image Backup With Disk Utility Mac 10 14

Acronis is a name well known in the Windows world, but less so to Mac users. True Image is its personal backup solution and it supports backing up your data to a local disk, Acronis' own. As one of the backup methods, you can create a disk image for a drive directly on Mac. After creating a disk image, you are able to back up and store your data in the disk image file. If you want to create disk image on Mac easily, you can use DMclone for Mac. This simple and tiny tool can back up and crate image for disk fast and securely on Mac.

Disk images are not bootable backups. To create a bootable backup, you must back up to a hard drive that is attached directly to your Mac. We recommend that you only use a disk image if you are backing up to a network volume connected to via ethernet, and we recommend using locally-attached storage for your primary backups.

A disk image is a single file residing on your hard drive that contains the entire contents of another hard drive (except for the free space). When you want to access the contents of that filesystem, you double-click on the disk image to mount the disk image as if it were an external drive attached to the machine. We recommend using disk images sparingly. If you're backing up to a network volume and your Mac and the NAS device are connected to the network via ethernet, then a disk image may be a good fit. In most cases, however, disk images are not a great choice for your backup strategy.

To back up to a new disk image:

  1. Choose your source volume from the Source selector
  2. Choose New disk image... from the Destination selector
  3. Provide a name and choose a location to save your disk image
  4. If you plan to back up to this disk image again in the future, set the image format to one of the read/write formats. If you want a read-only disk image for archival purposes, set the image format to one of the read-only formats.

To back up to an existing disk image, select Choose disk image... from the Destination selector and locate your disk image.

Read/write 'sparseimage' disk images

A sparseimage disk image is a type of read/write disk image that grows as you copy files to it. In general, sparse disk images only consume as much space as the files they contain consume on disk, making this an ideal format for storing backups. Use of this older disk image format is only recommended when backing up to non-AFP network volumes on an OS older than macOS Sierra. Please note that sparseimage files are monolithic and potentially very large files. If the underlying filesystem has a 2TB file size limit and the sparseimage file reaches that limit, the sparseimage file cannot be grown. In most of these cases the sparseimage file becomes corrupted when the underlying filesystem limit is reached, so we don't recommend this disk image format for large data sets.

Read/write 'sparsebundle' disk images

A sparse bundle disk image is similar to a sparseimage insofar as it grows as you add data to it, but it retains its data in many smaller files inside of a bundle rather than inside a single file. We recommend this disk image format for most scenarios.

Running out of space on a sparseimage or sparsebundle disk image

CCC reported that the destination is full, but the underlying disk has plenty of free space. CCC initially sets the capacity of your disk image to the amount of free space on the underlying disk. If you have freed up some space on that disk since you created the disk image, you can manually expand the capacity of the destination disk image in Disk Utility. Choose Resize... from the Images menu in Disk Utility, select your destination disk image, then expand it as desired. We recommend that you do not expand the disk image such that it is larger than the capacity of the underlying disk.

The disk image file is larger than the amount of data it contains, why? Sparseimage and sparsebundle disk images grow as you add data to them. They do not, however, automatically shrink when files are deleted from them. As a result, the amount of disk space that the disk image file consumes will not necessarily reflect the amount of data that they consume. To reclaim disk space that is occupied by the free space on your sparse disk image, CCC will compact the disk image before attempting to mount it if the free space on the underlying volume is less than 25GB, or is less than 15% of the total disk capacity. In most cases, you do not need to compact the disk image yourself, but this functionality is documented here so you'll understand why you might see CCC spending time 'Compacting the destination disk image' at the beginning of a backup task.

If you would like to compact a disk image manually, drop the disk image file onto this application: Compact Sparse disk images. Be sure to unmount the disk image volume if it is already mounted. Also, note that the compacting process can take a while (e.g. an hour for a 100GB disk image on a locally-attached volume). Finally, be sure that your system is running on AC power. The system utility that compacts the disk image will refuse to run while the system (e.g. a laptop) is running on battery power.

CCC applies more aggressive SafetyNet pruning to disk image volumes

When you configure a task to back up to a new disk image, CCC will configure the task's SafetyNet pruning to prune anything older than 1 day. You are welcome to change these settings, but we have found that more aggressive SafetyNet pruning will avoid excessive use of disk space on the underlying device, and will reduce the need to compact the disk image.

Image

Please keep in mind that SafetyNet is not intended to offer access to older versions of your files, it is a safety mechanism that is designed to avoid the loss of data on an errantly-selected destination volume. SafetyNet is generally not applicable to disk image backups because the disk image is typically dedicated to the backup task. However, enabling SafetyNet with even a very aggressive pruning limit does offer a modicum of protection in cases where you've accidentally removed files from the source.

If you're looking for a solution that retains older versions of your files and your source volume is APFS-formatted, consider CCC's snapshot functionality instead. Snapshots are disabled on disk image destinations by default, but you can enable snapshot support either on the disk image volume or on the source volume.

Read-only disk images

Read-only disk images cannot be modified without invalidating the built-in checksum, therefore they are a good container for storing archived material. Compression rates vary on the content of your source, but you can typically expect to reduce the size of your disk image by about half when using compression. There is a subtle behavior that you should take note of when considering this option as a space-saving measure: CCC will first create a read/write disk image, copy the selected items to it, then convert the disk image to read-only compressed. In this case, you will actually need twice the space on your destination as the items to be copied consume on the source.

Encrypting disk images

If any of the data that you are backing up is sensitive, and if your backup device may be in an insecure location, encrypted disk images can improve the security of your backup. CCC offers 128 bit and 256 bit AES encryption to encrypt disk images. To create an encrypted disk image, select one of the encryption levels from the Encryption menu. After you click on the OK button, you will be prompted to specify a passphrase for the new disk image, and CCC will give you an opportunity to save the passphrase in your own keychain. CCC will also store the passphrase in a private keychain so the disk image can be mounted automatically during scheduled backup tasks.

Note: If you create a read-only, encrypted disk image, the intermediate disk image that CCC creates is NOT encrypted. This intermediate disk image file is deleted once the final, read-only, encrypted disk image has been created, but it is not shredded. Take this into consideration when choosing your destination media. If the destination may be placed in an insecure location, use Disk Utility to securely erase free space on the underlying destination volume after you have created your encrypted disk image archive.

Running a backup task whose destination is a disk image on the startup disk

If you specify a disk image that resides on your startup disk as the destination to a scheduled task, CCC will impose some more conservative requirements on this task. To proceed with this configuration, one of the following requirements must be met:

  • The amount of free space on the startup disk is at least 1GB larger than the amount of consumed space on the source volume.
  • The disk image won't grow, e.g. it is a .dmg file, not a sparseimage or sparsebundle disk image.

These requirements avoid a scenario in which the startup disk runs out of free space, causing instability on macOS. If you cannot accommodate the free space requirement, we recommend that you create a .dmg disk image in Disk Utility (choose File > New... > Blank Disk image, set the image format to read/write disk image). Disk Utility will pre-allocate exactly as much space as you request, and CCC will gladly use this disk image without fear of filling up the startup disk.

Sparsebundle disk images are not supported on some filesystems

If your Mac is running an OS older than macOS Sierra, CCC will refuse to save or mount a sparse bundle disk image if the underlying filesystem that the disk image file resides upon does not support the F_FULLFSYNC file control. Most filesystems support this file control, but the SMB file sharing protocol does not. Most people that encounter issues with creating a sparsebundle disk image on a network volume are encountering issues because the network volume is mounted via SMB.

Starting in Mavericks, Apple's preferred file sharing service is SMB. As a result, if you attempt to connect to a network volume, Finder will use SMB to establish that connection unless you explicitly specify AFP as the protocol to use. In this configuration, a sparse bundle disk image will not work, and CCC will issue an error. To avoid this error, connect to the network volume explicitly using AFP:

  1. Eject the network volume if it is currently mounted
  2. Choose Connect to server from the Finder's Go menu
  3. Type in 'afp://yourserver.local' (changing the hostname, of course), then click the Connect button and mount the network volume
  4. Go back to CCC and choose Choose disk image... from the Destination selector, then select the sparsebundle disk image on your network volume

Why can't I use a sparsebundle disk image on a filesystem that does not support the F_FULLFSYNC file control?

When your computer writes a file out to the hard drive, the data usually goes to a 'write buffer' — a small portion of RAM that is installed on the circuit board of the hard drive. By accumulating smaller write operations onto this RAM chip, the hard drive can increase overall write performance by writing large blocks of cached data to the physical media all at once. While this write buffer improves performance, it also carries a risk. If the power fails or the disk's connection to the computer is suddenly broken between the time that data was written to the buffer and when the buffer is flushed to the disk, your filesystem will have an inconsistency. Filesystem journaling typically mitigates this risk, however it doesn't offer enough protection for Apple's sparsebundle disk image type.

In Mac OS 10.5, Apple implemented the F_FULLFSYNC file control for network servers and clients. The F_FULLFSYNC file control is a command that is sent to the hard drive after some (or all) write operations that tells the disk to immediately flush its cache to permanent storage. To provide better protection for data on sparsebundle disk images, Apple disabled support on Mac OS 10.6 for using sparsebundle disk images that reside on filesystems that do not support the F_FULLFSYNC file control. Apple relaxed this requirement in macOS 10.12 (Sierra).

You are likely to encounter this error condition if your sparse bundle disk image is hosted on a pre-Mac OS 10.5 Macintosh or various Network Attached Storage (NAS) devices (especially SMB). When you encounter this error, copy the sparsebundle disk image to another network volume, or ask CCC to create a new sparseimage disk image file (sparseimage disk images are not the same as sparsebundle disk images).

Snapshots and Disk Images

When creating a new disk image, CCC will format the disk image to match the source volume. For better performance on APFS-formatted disk images, CCC will disable snapshot support on the destination disk image volume if:

  • The backup task was originally configured to create a new disk image
  • Snapshots are currently enabled for the destination disk image
  • The snapshot retention policy limit for SafetyNet snapshots is set to the default value of 7 days

When CCC disables snapshots on that destination disk image volume, it explicitly sets the SafetyNet limit in the snapshot retention policy to 0. If you subsequently re-enable snapshot support on that volume without changing the SafetyNet limit back to the default, then snapshots should remain enabled (because the three logical conditions are no longer matched).

If you would like to enable snapshot support on your disk image and keep it enabled, be sure to either leave the SafetyNet limit set to 0, or change it to anything other than 7. If you ever change the SafetyNet retention value for that disk image back to 7 (or other reset the values to defaults), CCC will again disable snapshots on the disk image when the task next runs.

A message for new Mac users coming from the Windows world

Backups on a Windows system are very different from those on a Macintosh. If you're coming from a Windows background, the term 'imaging' and the concept of making a disk image backup is probably familiar to you. Restoring from disk image backups is made simpler on Windows because the startup environment is built around them. That's not the case for a Macintosh. When you create a disk image backup of your Mac's startup disk, the logistics of restoring that backup are actually fairly complicated. Due to these complications, we don't recommend using a disk image as your primary backup on a Mac. Disk images are useful for storing a backup of your user data on a network volume, but for your Mac's startup disk, we recommend that you back up directly to a disk that is attached to your Mac; not to a disk image.

Related Documentation

If you do not already know it, backups are the most important steps you must take to ensure that your data will not be lost. Despite all the trouble you go through to make sure that your computer is always clean and running at its peak performance, there comes a time when even the best storage solution fails.

What will you do now? There is nothing you can do about it but try to save as much as you can using data recovery tools that, at best, will manage to recover only a fraction of what you had on your hard drive.

The conclusion is that you should perform backups of your system on a regular basis and make sure you keep multiple backups of irreplaceable and important files. If you are as paranoid as me, you should also keep at least one backup copy of all your important files in a different physical location (an 'offsite' location as experts call it).

There are many ways you can back up your data but the most popular ones are using the integrated Time Machine and Disk Utility tools.

Using Time Machine

Mac users that have OS X 10.5 or later on their Macs can use the included Time Machine utility which will allow them to automatically back up their system and all important, irreplaceable files to an external hard disk or even to a network volume.

The Time Machine tool also features an intuitive interface for restoring your files or your entire system and is a pretty easy to use utility once you get the hang of it (some say it is the easiest backup solution ever concocted by a software developer since the beginning of time).

If you want to start using it, you can go read the detailed tutorial on how to use it published by Apple HERE and you'll get your backups up and running in no time.

Using Disk Utility

This alternative backup procedure will produce a disk image containing everything on your Mac OS X disk. Doing backups using this method will preserve your files' unique attributes of, such as permissions, UUIDs and ACLs. Also, because this method produces a disk image backup, it is recommended if you want to go for the offsite storage backup procedure.

For an offsite backup you will have to make sure that your external disk is stored in a different physical location so that anything happens to your computer your data will be safe. If the external disk you use does not have enough free space for holding future backups, you may consider using a different disk for other backups or even deleting prior backups to free up disk space.

Backup to an external drive

1. Connect an external hard drive (FireWire or USB) with sufficient free space to hold a copy of your Macintosh HD.2. Start using your 10.5 or 10.6 Install DVD. (Insert the DVD, then restart and hold the C key.)3. Select your language and choose Disk Utility from the Utilities menu.4. Select the disk you wish to back up in the source pane on the left.5. Click 'Verify Disk' to check the disk for any errors and click 'Repair Disk' to repair if any issue is found.7. Click the 'New Image' button in the toolbar and give your image a name containing the date of the backup and the name of the disk you backed up for easier recognition.Note: You can also encrypt the backup if you want additional security. From the 'Encryption:' pop-up menu, you can select either 128-bit or 256-bit AES encryption. When prompted, you will have to enter a password for the encryption.8. Make sure the Save destination is on your external hard disk, then click 'Save'.9. Enter your admin name and password when and if prompted. The imaging process will now begin. Approximately 1 GB / minute will be saved, depending on various factors.10. When the imaging is complete, select the newly created disk image in the device pane, choose Images > Scan Image for Restore from the menu and let the scan complete.11. Quit Disk Utility (press Command-Q) and the Mac OS X installer (press Command-Q again). You will be now prompted to restart.

Mac Disk Image Backup Disk

Restoring a backup to your Mac OS X disk

Restore Disk Image Mac

Note: Use the Migration Assistant tool instead of Disk Utility if you want to properly transfer the data back to your Mac if the Mac you are restoring to is not the same Mac used to make the .Important: If you use these steps data with the same name in the same location will be overwritten.

Mac Disk Image Backup With Disk Utility Mac 10 14

1. Connect the external disk containing your backup.2. Start using your 10.5 or 10.6 Install DVD. (Insert the DVD, then restart and hold the C key.)3. Select your language and choose Disk Utility from the Utilities menu.4. Select the internal Mac OS X disk you want to restore to.5. Click the Restore tab and drag the internal disk to the 'Destination:' field.6. Click on the 'Image...' button next to the 'Source:' field.7. Navigate to the location of the backup you want to restore (on your external disk).8. Click 'Open' to continue and then click the 'Restore' button. Confirm you want to 'Restore to Disk' by clicking on 'Restore' again.9. Enter your admin name and password. Also, if you have an encrypted backup disk image, enter the password if necessary. The restore process will now begin and the time it takes to restore depends on factors such as the amount of data contained on your backup disk image.

If you encounter any issues during your backups / restore sessions or you know of other better / easier methods of backing up a Mac OS X disk, share with us and the other readers in the comments section below.





broken image