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:

http://www.gm2dev.com/2015/01/automount-smb-shares-on-osx-yosemite/

Essentially:

edit this file:

/etc/auto_master

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:

/etc/auto_smb

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

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

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:
example

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

And all the thanks needs to go to Mike:
http://mike-is-a-geek.blogspot.com/2011/04/recursive-rsync-only-specific-file.html