How to use to sync folder via ftp ? Using curl or ftp shell ?
I'm making a script which prepare pictures (files), and then sync these files with a remote ftp folder.
All is good but not the ftp sync.
The idea is simple :
1 - Test if the destination folder on the serveur exist : if not, create it.
2 - If the file already exist on the serveur : do not upload to the serveur (even if the file date is different)
3 - If a file is on the server but not in the source local folder : delete it !
It's a simple sync function. I know how to do that with rsync, but it's only local :
rsync -a --ignore-existing --delete ~/pictures/temp/ ~/pictures/vers-site-valdoule/
So do you have any idea how to do that with already installed shell fonction like curl or ftp ?
Thanks a lot !!! 🙂
Message was edited by: Vinc26
Message was edited by: Vinc26
MacBookPro 17" 2.33GHz with 3GB of RAM, Mac OS X (10.5.2)