Apple Network Backup

broken image


  1. Apple includes its own backup software, Time Machine as part of the macOS. It's an exceptionally easy to use solution. All you need to do is plug in an external storage device, hard drive or SSD.
  2. One of the great unsung features of macOS is Time Machine, the software that sits inside your System Preferences panel and quietly performs an automatic backup of the entire contents of your Mac's.
  3. Short Question: Is it possible to use an Apple Time Capsule just as a network attached backup drive and not a router? Background: We want to use a separate router to manage a more complex network. We where looking at not using an Apple Time Capsule and instead a 3rd party NAS (probably Synology) for Time Machine to backup to but as I've read.
  4. Or you can opt for backing up with iMazing. It offers the best way to back up your iPhone or iPad to your computer (Mac or PC). It is transparent, private, and fully configurable. It can automatically back up your iOS devices over Wi-Fi, on your schedule. You can choose where to store the backups and even back up to an external drive.
  1. Apple Home Network
  2. Apple Network App

You can use an online backup service if you have the bandwidth, but a practical way to back up your Mac locally is to use a NAS: a network-attached storage device. Here's why it can be convenient and practical to use a NAS for backups, and as a personal cloud.

If you have tried to set up network backup on OS X and you ran into the message 'the backup disk image could not be created', probably this article will help you.

OS X's TimeMachine software had native support for network backup until the OS X Leopard 10.5.2 was released. Apple had its own reasons for the decision to remove network backup, but many advanced users including us at Foliovision would still like to be able to back up over the network.

We have a bunch of Mac Minis in a mixed network of Linux and Windows computers. We'd like to use all our Minis for work and not for backup and use one of our older Linux towers to store the backup.

Macbook mousepad not clicking. How do you do it?

Fortunately Apple left us an option to turn-on network support for TimeMachine by running the following command in terminal:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

We can finally see network hardrives in selection for backup places. The problem might seems to be solved. No dice: it is only the beginning.

If you select a network drive for backup, you will see a very familiar message:

the backup disk image could not be created

Google automatically completes the phrase as soon as you type 'the backup d'.

Apple Network Backup

The real problem is in the file system which must be used for TimeMachine backup. TimeMachine only supports Mac OS Extended (Journaled) file system.

The solution is to create a place on the network, which will trick TimeMachine, into thinking that it holds data in Mac OS Extended (Journaled) file system. This trick is accomplished via copying a sparsebundle image (with special name) to a network share. You have to do following steps for to make TimeMachine successfully run a backup.

OVERVIEW

  1. Enable network hardrive support in TimeMachine
  2. Mount network shared place for backup data
  3. Create a sparsebundle virtual image
  4. Copy the sparsebundle virtual image to the network shared place
  5. Set up TimeMachine for network backup
  6. Optimisation and other information

1. Enable network hardrive support for the TimeMachine software

Network hardrive support for TimeMachine is turn off by default. For changing this fact we have to type following command to the terminal:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

After that, you should see mounted network harddrive in TimeMachine's locations for backup. If it is not this case, probably a restart is needed.

2. Mount Network shared place for backup data

If you have a shared location for backup data on Linux server, you can map the directory as a drive to Mac in Finder application. You have to do following steps:

  1. Click GO and then 'connect to server' in finder menu.
  2. Write following path if your sharing is based on protocol samba (SMB):
    SMB:/// (e.g. SMB://192.168.1.25/Backup)

Apple word app.

3. Create a sparsebundle virtual image

Apple Home Network

This step is very important, because the TimeMachine doesn't allow to backup data to a network drive, which has any file system except 'Mac OS Extended (Journaled)'. So we have to create a disk image in 'Mac OS Extended (Journaled)' format.
We have two ways to do it:

  1. Open disk utility (Disk Utility) and create new virtual disk with following atributes:
    • Save As: _.sparsebundle (e.g. MacAlec_00ef9a048c4f.sparsebundle, if you forget to add .sparsebundle, it will be added automatically)
    • Volume Name: Backup of (e.g. Backup of MacAlec)
    • Volume Size: the max amount of space you're going to set aside for backups. (The volume size is depends on amounts of backup data. I have chosen 150 GB)
    • Volume Format: Mac OS Extended (Journaled)
    • Encryption: None
    • Partitions: No partition map
    • Image Format: Sparse bundle disk image
    • Note: Disk utility automatically mounts the image to system volumes. We won't need the image mounted, so we can safely unmount it.
  2. The previous step can be done by one command in terminal:
    hdiutil create -size 150g -fs HFS+J -volname 'Backup of MacAlec' MacAlec_00ef9a048c4f.sparsebundle

3. Copy the sparsebundle virtual image to the network shared place

You can copy the sparsebundle image to the network shared place using one of the following steps:

  • Copy the file to shared place by drag and drop operation in Finder application.
  • If you prefer to work with the terminal, you can type this instead:
    cp -r /_.sparsebundle /Volumes//(e.g. cp -r /Users/Alec/Documents/MacAlec_00ef9a048c4f.sparsebundle /Volumes/Backup/)

Now we can safely delete the sparsebundle image copy on local computer once we are sure that it has been copied to the shared location.

Set up the TimeMachine for network backup

  1. Open TimeMachine preferences (in SystemPreferences).
  2. Click on Change Disk button for select the network drive for backup. (We have to select the 'Backup'in our case.)
  3. The first backup will start in two minutes. TimeMachine supports incremental backup, thus the first backup can take very long time (it is depends on network bandwidth and amount of backup data).

If you want to eject the mapped shared volume (/Volumes/Backup in our case), you have to do it within the two minutes countdown before backup starts or after backup is finished. TimeMachine has its own mechanism for mapping network hardrives, so a backup process isn't interrupted by your hard drive mounting or unmounting. TimeMachine will automatically mount the virtual sparsebundle image, when the backup starts. You will see Backup of as connected device on your desktop, so you won't need to manually mount the network hard drive later.

4. Optimisation and other information

in order to avoid long delays in backup process caused by Spotlight indexing, You should set the Spotlight application to not index the mapped network drive. Here's how to remove spotlight indexing for a hard drive:

  • Open up the Spotlight software preferences in system preferences window
  • Move to privacy options and add the network drive by plus symbol

If you'd like to back up a little less often, you can modify the file com.apple.backupd-auto.plist which is located in /System/Library/LaunhDaemons/ to change backup time interval. Open up the file in text editor and find the section:

StartInterval
3600

You should change the number 3600 to the number of seconds of your backup interval.

Result

I deliberately deleted some files to test backup reliability. This worked just fine. I was able to restore data from backup using TimeMachine's restore feature. TimeMachine restore is easy to use and lets you choose data from any date and hour. If you have followed the exact steps above, you should have a working network backup now on a non-Apple computer.

I would like to thank Nick Hilliard and MacCorner for useful information.

I think I've figured out this myself after many YouTube videos later and research over the internet.


  1. Invest in this DiskStation DS218+ | Synology Inc.
  2. Invest in some NAS drives, probs WD Red 3TB. Obviously chose a size of your preference depending how much data you have etc. 3TB is enough for me for now.
  3. Follow the instructions here for setting up Time Machine Backup https://www.synology.com/en-global/knowledgebase/DSM/tutorial/Backup_Restore/How _to_back_up_files_from_Mac_to_Synology_NAS_with_Time_Machine


Apple Network App

That way you can set a specified volume mentioned in above article (due to Btrfs file system available on the PLUS model of Synology) so Time Machine doesn't take up all the space and I can split the WD Red drives to act as

  • file sharing and
  • backup with Time Machine


Then continue using my current WD Passport to have a second manual backup as I've currently been doing and keep it off network but backup now and then.


I also looked at pricing whether to go for:

  • Lower model, lower price for Synology NAS, which cannot specify a volume as it exlcludes Btrfs and use solely for file sharing and buy an additional external HDD for Time Machine Backup vs.
  • Paying for a higher end model slightly more price Synology NAS that allows you to specify a volume size, that way I can use NAS for both file sharing and Time Machine.



The difference with the above came to about $35 CAD so its not significant and prefer the high priced Synology NAS, also has better features and future proof. Prices were from Amazon.ca as of March 2018.


A 2 bay drive as RAID 1 will also be enough for me as I plan to have an offline backup with my WD Passport Ultra incase both my NAS drives fail.

Mar 27, 2018 3:06 PM





broken image