Tag: unix

Auto mount SMB/AFP/* volumes in Mac OS X

Wed 7, December 2016

Many moons ago I posted some findings on how to get network volumes to auto mount in Mac OS X.

Recently I needed to do this again – but things have changed a little since OS X 10.5 (currently running 10.11).

All the info I found was in this great post:



edit this file:


add something along the lines of:

/mnt auto_smb -nosuid

(this example creates a mount point on your machine “/mnt” based on the file “auto_smb” that we need to create next.

create a file such as:


add mount points to this auto_smb file:
(this example creates an smb mount point called “projects” which connects to an IP address of as guest and mounts the  “allthestuff” directory from that machine)

projects -fstype=smbfs,soft ://guest@

kick it over with:

sudo automount -vc


Up until now it has been working well!


Recursive rsync with only specific file types

Mon 28, May 2012

I had never worked out how to use rsync to create intermediate directories when syncing over certain filetypes (in my case nuke’s .nk files). So the other day I googled around and found exactly what i was looking for.

A great way to sync directories and certain filetypes recursively:

rsync -pavr –progress –include “+ */” -include=”*.nk” -exclude=”- *” /my/source/directory /my/destination/

And all the thanks needs to go to Mike: