Your best friend for file transfer.

Fetch application logoFetch

Applescript and the Mirror command. (2 posts)

  • Started 4 years ago by T. v. Gerwen
  • Latest reply 4 years ago from Scott McGuire
  • T. v. Gerwen Member

    Hello!

    I've (apple)scripted some with Fetch, and it generally is nicely scriptable. Now I was looking for an automatic FTP backup application for Mac OS, but there doesn't seem to be a lot out there.

    Now, my question is (to be honest I did not look very deeply into this before posting here), is the Mirror command, along with its saved settings files, properly usable through applescript? And if so has anyone used it effectively, and can give me a script i can use as a fully configurable, automated multi-ftp backup tool? :)

    If not, I'm thinking about making one, the intention is to have fetch keep a copy of an ftp each night for a number of sites, and using the mirror command to do it, to save on download time (in other words: it duplicates the backup folder at an interval, and then "mirrors" (updates) the new folder, and keeps copies up to (back to) a set time, like a month or so).

    When there's nothing out there and i get something working myself, i'll be happy to share it.

    Thanks for any info!

    Posted 4 years ago #

  • Scott McGuire Administrator

    Hi,

    Yes, the Mirror command and its settings are usable through AppleScript. (See the AppleScript dictionary for details.)

    You can also save Mirror settings in a mirror document, and you could open a mirror document via scripts, too.

    Usually when people want to set up automatic FTP transfers, we suggest using iCal to accomplish this; we have an entire help topic describing the set up. See scheduling automatic transfers with iCal for more information. I don't know if that would be sufficient for what you want. (You can also run AppleScripts from iCal alarms instead of opening documents.)

    Let us know if you have more questions and what solution you ultimately come up with!

    Best,

    Scott McGuire
    Fetch Softworks

    Posted 4 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.