In a previous article, we wrote about how to set up a USB drive on the SmartHub to create a network shared drive.
The purpose was to any old portable USB drive like my old Western Digital Passport for storing files, sharing or archiving.
This article goes one step further and shows how we got TimeMachine to work using the SmartHub USB NAS. (Network Attached Storage).
Setting up the USB drive via the SmartHub and getting Time Machine took me a few weeks. I have included a list of URL’s for references and to credit all the great articles I had referenced while setting this up.
There were some concepts that I didn’t quite understand, which made it hard for me to make this solution work.
I hope that sharing the solutions that worked for me might help others getting their setups working much quicker.
We will use these steps to get the Network Time machine backups working with the USB drive attached to the shared SmartHub.
Network diagram for how your devices will connect to the USB drive.
1) Access to the SmartHub connected USB drive. (For more information, see the article (https://new-web-sites.com/how-to-use-a-usb-drive-as-a-network-drive-on-ee-smarthub/)
2) Creating a Time machine compatible filesystem volume (This is called a sparse bundle) where Time Machine will store your backups.
3) Copy the sparse bundle to the USB NAS
4) Mount the sparse bundle.
5) In Time machine set the backup destination to that of the new volume on the network shared USB drive.
Create the backup volume.
(Ideally, you should create a backup volume a least twice the size of the drive you which to backup. The minimum size for the volume would be one and a half the same size of the disk you want to backup.)
There are two ways to create the backup volume.
In the terminal, enter the command
# hdiutil create -size 500Gb -type SPARSEBUNDLE -fs “HFS+J” hostname-backup
(Use the hostname of your computer so you can identify the back volume in future).
Using disk utility.
⌘ Spacebar -> Disk utility -> Click the plus symbol -> Enter the volume name -> Format = APFS -> Size options -> Enter your chosen size -> Click OK -> – Click Add.
Disk utility will take a few seconds to create the volume.
Either step creates the volume that we’ll use for the Time Machine backup.
Now copy the volume to the USB drive using this command.
# rsync –aE hostname-backup.sparsebundle /Volumes/usb1/hostname_backup_dir/ hostname-backup.sparsebundle.
(We could use the Finder to copy the file to the new volume, but you need to take care not to double click and mount the volume yet.)
Once we have copied the file to the USB drive, we can delete the local copy.
Now you can navigate to the new volume location using Finder, then double click on the sparse bundle, which will mount the Sparse bundle.
You can see this mounted device in the finder tree.
The last step is to access the Time Machine preferences and select your newly created volume for your Time Machine backups.
I hope this works for your situation. If you have any questions, feel free to leave a comment.
Credits and References