FayazSwati

Q: Mounting NAS at startup with script for Time Machine Backup

you can mount and add Network attach storage with start-up script

 

1 - write your script

2- save script as Application and save it on your mac. ( i did save in applications )

3- add script to user login Item, and tick Hide box. (System Prefernces > user & groups > select your user > login item > + button > add script)

4- first time when you start mac with this startup script , you have to configure time machine backup as guest or registered user ( save login detail) , once this done , next you start or login in to mac script will run and connect to NAS with your setting.

script:

{

tell application "Finder"

     mount volume "afp://ip address or nas address/time machine backup name"

end tell.

}

 

i did work for me .

 

Thanks

MacBook Pro, Mac OS X (10.7.5), Yosmite

Posted on Sep 5, 2015 12:04 AM

Close

Q: Mounting NAS at startup with script for Time Machine Backup

  • All replies
  • Helpful answers

  • by FayazSwati,

    FayazSwati FayazSwati Sep 8, 2015 8:35 AM in response to FayazSwati
    Level 1 (0 points)
    Sep 8, 2015 8:35 AM in response to FayazSwati

    Hi,

    if anyone using the script i mention in previous post , if script is removed from user login-item still it will work , i tested and is working .

    if you just run script it will attache NAS then set up time machine backup on newly attached drive , it will work. you do not need to add script to user login-item.

    Thanks