- My computer is named "neap"
- My NAS appliance is named "spring"
- My NAS appliance has a CIFS shared volume called "backups"
hdiutil create -fs HFS+J -volname "Backup of `hostname -s`" `hostname`_`ifconfig en0 | grep ether | awk '{print $2}' | sed s/://g`.sparsebundle
Or if you would like to define an upper limit to how much space this Time Machine target can occupy total, add a "-size" argument, like this:
hdiutil create -size 420g -fs HFS+J -volname "Backup of `hostname -s`" `hostname`_`ifconfig en0 | grep ether | awk '{print $2}' | sed s/://g`.sparsebundle
Kewl, now mount your target NAS volume.
- In the Finder I choose "Connect to Server..." from the "Go" menu.
- I enter "smb://spring/" since "spring" is the name of my NAS file server.
- Click connect, and when prompted I supply my connection credentials.
- From the list of available volumes on "spring" I select "backups" and click OK.
mv *.sparsebundle /Volumes/backups/
And at this point, I can run Time Machine as usual, and tell it to backup to the network volume. I do this:
- From the Apple menu, I select "System Preferences"
- Click the "Time Machine" icon.
- Click "Select Disk"
- It should list the NAS volume, in my case it's "backups" on "Backup to spring"
- I click the volume name once, then click the "Use for Backup" button.
- I supply my username and password, so that Time Machine can reconnect in the future.
- After that, Time Machine switches to "On" and starts counting down to the next backup.
No comments:
Post a Comment