Adam
Adam

Reputation: 5141

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.

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

Upvotes: 1

Views: 583

Answers (1)

Adam
Adam

Reputation: 5141

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.

Upvotes: 2

Related Questions