Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Are there any OSX tools that can watch for file changes in a directory then sync (SFTP) those changes to a remote server?

Basically I want to edit files locally (whatever files, whatever program) and have them automatically upload to the server.

Rsync can't watch a directory for changes on it's own, and I can't seem to get lyncd to run on osx, due to no inotify tool.

Any ideas?

share|improve this question
    
Perhaps belongs on SU? –  jtbandes Aug 12 '11 at 4:34
    
I disagree - I think this is an OS X question and belongs here. –  dan8394 Aug 12 '11 at 5:07

4 Answers 4

I'm only aware of proprietary systems like DropBox.

But it seems like this could be done fairly easily, using kqueue to detect file changes, and running rsync a few seconds later.

share|improve this answer

Here's an article about doing just that with a Ruby script.

It uses FSEvent, the inotify counterpart on Mac OS X.

share|improve this answer

RE : ".. Basically I want to edit files locally (whatever files, whatever program) and have them automatically upload to the server."

You're in luck, DoubleDown will do exactly what you specified :

Direct Download for DoubleDown here.

DoubleDown download page with more info here.

More info on DoubleDown :

Doubledown keeps a complete local copy of the remote directory you're syncing so all your local operations are lightning fast. After it performs an initial sync (being careful not to clobber any local changes), Doubledown is notified of changes by Mac OS X's FSEvents framework and responds by creating, uploading, and removing files or directories as required.

Hope this helps.

share|improve this answer

If you are happy writing a script, Folder Actions let you achieve what you require:

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

The following page seems to offer exactly the solution you are looking for:

http://sites.google.com/site/andreatagliasacchi/blog/osxautomaticsyncwithfolderactions

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.