Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Are there any tools bundled with OS X which can assist me with automatically synchronising a folder with an FTP site?

I have CyberDuck but what I am after is automation.

share|improve this question

5 Answers 5

You can map a remote SFTP folder to your local computer using SSHFS with FUSE for OS X (based on the old MacFUSE, which does not work on 10.6+). After that, all usual tools such as rsync are available to you:

mkdir /tmp/my-server
sshfs user@remote-host:/my-dir /tmp/my-server -oauto_cache,volname="My Server"
rsync -aP /tmp/my-server $HOME/my-local-copy

When done:

umount /tmp/my-server

...or to eject the disk from Finder's sidebar: first go into Finder's preferences to make connected servers show on the desktop, and then when connected drag the disk into the sidebar. OS X will remember you once dragged it in there, and show it whenever you connect again.

There's also a GUI, Macfusion (see also the SSHFS installation notes when using Macfusion).

share|improve this answer
    
(It seems Macfusion might still support plain FTP as well. Haven't tried that though.) –  Arjan Mar 31 '13 at 12:56

You could use the built-in ftp client and an expect script and then have that called from an Automator script run at an interval (scheduled from iCal).

I've never done this myself, but all the pieces are there.

share|improve this answer

Folder Actions are what you're looking for, along with Automator scripts.

Check it out:

http://www.simplehelp.net/2007/01/30/folder-actions-for-os-x-explained-with-real-world-examples/

share|improve this answer

I use sitecopy, an FTP sync application. It's commandline. It's included in fink, the OSX lib that contains a lot of linux tools ported to osx

share|improve this answer

Depending on your level of comfort with the tools, you could certainly write a bash script that would do what you're after. That would require a bit of understanding of the underlying Unix toolset, but it could definitely do what you want.

I suspect that you could use AppleScript or Automator to do what you're after as well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.