开发者

Tool to upload modified files over FTP

I know there's similar questions on here, but they all seem to end up with a recommended answer that wouldn't suit mine - possibly more specific requirements; I'm dealing with a rubbish shared host开发者_StackOverflow.

I'm wondering if there is a command-line tool which can do a one-way sync over FTP, i.e. it will upload new or modified files, given a host, username, password, etc..

I know rsync can do this, but unfortunately in this instance I can't use it.

If there is no such tool, does FTP support any kind of hashing (md5, sha1, etc) so I could make my own.

The ultimate goal here is to have this running automatically, as a git hook, or makefile script.

Thanks


Since asking this question, I've found git-ftp which works really well, assuming you can keep all your files under git.

I'm using something along the lines of git add .;git commit -m "Recent changes";git ftp push to upload modified files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜