PDA

View Full Version : File-sync to ftp or similar



Mike
17-11-2013, 08:32 AM
Hi all,

I'm looking for some kind of software (for Mac...) that works similar to something like Dropbox - watches a folder and when a new file is added it's automatically uploaded to a specified folder on my website. Website is running Joomla (3.11), so could be a Joomla app or ftp or something else if it's available. Any suggestions?

Cheers,
Mike.

wainuitech
17-11-2013, 10:17 AM
If Dropbox does what you want, there is a MAC version: Download Here (https://www.dropbox.com/install2) - If you click on the MAC beside the wording "Also available for", the MAC version download. (30.6MB)

Mike
17-11-2013, 12:32 PM
If Dropbox does what you want, there is a MAC version: Download Here (https://www.dropbox.com/install2) - If you click on the MAC beside the wording "Also available for", the MAC version download. (30.6MB)Thanks wainuitech, not quite what I meant. I need something that will upload to a webserver, either through a Joomla plugin or via FTP. Dropbox doesn't do this unfortunately :( Dropbox watches a folder and loads new files into your dropbox account, so I want something that works similar to that, but uploads into an ftp instead of the Dropbox account.

Cheers,
Mike.

Webbnzl
17-11-2013, 12:39 PM
Ftpbox is what you are after. It works ok but they're still working out a few bugs, primarily if the ftp server is unavailable the program prompts you for ftp settings again. http://ftpbox.org/

Mike
17-11-2013, 02:51 PM
Ftpbox is what you are after. It works ok but they're still working out a few bugs, primarily if the ftp server is unavailable the program prompts you for ftp settings again. http://ftpbox.org/ thanks, that's the sort of I'm after :) unfortunately no version yet :( Cheers,Mike.

fred_fish
17-11-2013, 03:03 PM
Do you have ssh access? (for rsync with an inotifywait trigger on the folder)

Cato
17-11-2013, 05:19 PM
+1 for rsync

Mike
17-11-2013, 05:22 PM
can you please elaborate?

Cheers,
Mike.

Cato
17-11-2013, 06:22 PM
Basically, you can use inotifywait or in Apple's case fswatch (https://github.com/alandipert/fswatch) will see a change in a directory and execute a script.

In this case rsync (https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/rsync.1.html) to sync local and remote files.

This should give you an idea:

http://blog.daanraman.com/coding/keeping-local-and-remote-directories-in-sync-automatically-using-rsync-and-fswatch-on-osx/