Posted By

kossmoboleat on 10/25/09


Tagged


Versions (?)

backup


 / Published in: Bash
 

  1. #! /bin/bash
  2.  
  3. #turn off spotlight daemon
  4. launchctl stop com.apple.metadata.mds
  5.  
  6. # mount partition
  7. dev_id=`diskutil list | egrep '.{33}PARTION_NAME {2,}' | egrep -o 'disk[0-9]+(s[0-9]+)?'`
  8. [[ $dev_id ]] && diskutil mount $dev_id
  9.  
  10. # start backup program
  11. open "/Applications/Carbon Copy Cloner.app"
  12.  
  13. #umount partition
  14. diskutil umount $dev_id
  15.  
  16. #turn on spotlight
  17. launchctl start com.apple.metadata.mds

Report this snippet  

You need to login to post a comment.