Sync folder with FTP in OS X
Solution 1
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).
Solution 2
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/
Solution 3
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
Solution 4
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.
Related videos on Youtube
Nippysaurus
Updated on September 17, 2022Comments
-
Nippysaurus almost 2 years
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.
-
Arjan about 11 years(It seems Macfusion might still support plain FTP as well. Haven't tried that though.)