Scripting Rsync

Discussion in 'Mac Basics and Help' started by Janje, Apr 19, 2011.

  1. Janje macrumors newbie

    Apr 19, 2011
    Dear all,

    i'm a fairly competent PC user and a newbie Mac user. I just purchased a MBP 15". After a lot of browsing and reading and installing and testing, I have it the way I want. I even got timemachine to work on an unsupported NAS. (took me some time)

    Now I want to backup to my HDD. Not with timemachine, because i want to be able to access the files from my PC! (I formated the HDD in exFAT) I wanted to use rsync and also got that working from the terminal.

    However i wanted to write a script. I can easily write a .bat in windows. To run just double click. Now i wrote a .sh file, starting with shebang. I wrote the file in texteditor and changed to extension to .sh.

    However now if I doubleclock it, it starts in applescripts... But I just want it to be executed in terminal. How to do? I already changed the "open with" to terminal (which was not listed as recommended application) and this seems to work, however I don't think this is the proper way to go?

    Pls some advise!

  2. chown33 macrumors 604

    Aug 9, 2009
    on the Western Slopes, with E. A. Poe

Share This Page