git/list[1] front-page[2] threads[3] people[4] search[5] about
 

FTP Synchronization

From
MWMarc Weber <marco-oweber@gmx.de>
Date
Jun 11, 2009, 00:03 UTC
Message-ID
<20090611000342.GA20699@gmx.de>
Has anyone a FTP synchranization which behaves like this yet?
1) get current version from ftp by readitg $REMOTE/hash
2) calculate git-diff `ftp get $REMOTE/hash`..HEAD
3) ftp push all files which have changed and
   ftp rm all files which have been deleted
4) write HEAD to $REMOTE/hash

What happens if there is a failure in the middle? Then 4) doesn't take place and all the actions will be replayed (probably ignoring errors). Also there should be a sync option recopying all files which are know to git at HEAD.

I don't want to use bash because I can't keep a FTP connection open, can I? (Maybe using lfpt and stdin redirection hacks ?) git perl lib support is better than python support, right?

If not how to do this? Maybe I should look at the git diff code to get to know or start comparing the git ls-tree output or such?

Of course I'd like this to be as fast as possible.
Marc Weber
Message 1 of 1 in “FTP Synchronization”
  1. Marc WeberJun 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.