I come primarily from a Windows background, migrating over to Mac. I've used WinSCP and loved a featured called "Keep Remote Directory Up To Date".

Here's the question: is there an equivalent SCP client for OSX that will monitor a directory for changes and upload when detected? I don't care if it's a GUI client or via command-line (rsync, ssh, etc).

link|improve this question

60% accept rate
feedback

4 Answers

Check out Transmit by Panic. From one of their blog posts, a commenter said:

One of my favorite features, that some people may not know, when you open a document into a certain application in Transmit (let’s say an .html file into BBEdit) then edit the document and Save it; Transmit automatically uploads it back to the server to the same file, no questions asked. It works wonders when making websites and editing CSS. Also convenient to make small corrections in images through Photoshop. You can also handle how Transmit deals with certain file extensions through the Prefs.

link|improve this answer
I've looked into Transmit - unfortunately it doesn't support SCP - only SFTP connections. Also, Transmit refuses to open my private key files. – pygorex1 Jan 12 '11 at 2:24
This feature is something different. It just means you can directly edit files from the remote server using the editor of your choice. Other FTP programs also support this. – Daniel Beck Jan 12 '11 at 5:38
feedback

Your best bet is probably to use Folder Actions and adapting the new item alert script to your needs, issuing a call to the command line utility of your choice.

link|improve this answer
feedback

I have come across a ruby script that does what you need, but it will take a little adapting.

Description:
rsync whenever the directory the script is in changes using the OS X FSEvents API https://gist.github.com/149491

link|improve this answer
feedback

You may use launchd instead of folder actions (to get some sample code just google for: launchd folder watcher).

You may then combine you launchd folder watcher item with a scp script similar to this one:

http://bre.klaki.net/programs/xbox-dirvish/OSX-sys-backup.txt

or use rsync over ssh like so:

rsync -urltv --delete -e ssh /path/to/dir othermachine:/path/to/dir

For a commercial cross-platform software solution see GoodSync.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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