Adicione algum código para verificar as montagens e tentar remontá-las, se necessário - aqui estão algumas (partes cortadas) de um script bash de backup do Linux (desculpe, não há nenhum OSX disponível no momento) - pode dar algumas dicas e talvez alguém também poste um equivalente em OSX:
thishost='myhostname'
#
mountpoint='/root/mybackup'
#
mountoptions='-o username=bkuplinux,domain=mydomain,password=mypassword'
#
sharename='//ssc4/linux'
#
emailtarget='[email protected]'
###################################
# End of user editable variables
###################################
backupfolder=$mountpoint/$thishost
if [ $(mount | grep -c $mountpoint) != 1 ]; then
echo "$mountpoint mount is not present - trying to mount..."
mount -t cifs $sharename $mountpoint $mountoptions
if [ $(mount | grep -c $mountpoint) != 1 ]; then
echo "$mountpoint mount is still not present - quitting"
if [ "$emailtarget" != "" ]; then
echo "$mountpoint mount is not present on $thishost so backup cannot continue" | mail -s "$thishost backup problem" $emailtarget
fi
exit 1
fi
fi