Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #4234
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Kaz Kylheku <kaz@kylheku.com> |
| Newsgroups | comp.programming |
| Subject | Re: sitecopy-like software for FTP upload |
| Date | Wed, 16 Apr 2014 20:44:48 +0000 (UTC) |
| Organization | Aioe.org NNTP Server |
| Lines | 32 |
| Message-ID | <20140416133631.729@kylheku.com> (permalink) |
| References | <limp7i$pmq$1@speranza.aioe.org> |
| NNTP-Posting-Host | X+c6YNb3AaWMPA3YfA4opg.user.speranza.aioe.org |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | slrn/pre1.0.0-18 (Linux) |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.programming:4234 |
Show key headers only | View raw
On 2014-04-16, Victor Porton <porton@narod.ru> wrote: > Are there any sitecopy alternatives which do NOT overwrite modified files on > the server? This bullshit again? Okay I will bite twice. What attribute of the file on the server indicates that it is "modified"? How would this alternative program detect that a file is "modified" and avoid writing to it? We connect to the server, log in, and there is a file. It has a modification timestamp, permission, ownership ... Which of these tells us that it is modified? Of course, you mean "modified relative to a prior version based on which you made changes." So to check this, we have to download the latest file from the FTP server, compare to that ancestral version, and if they match, then copy the new version (or else do a three-way merge with GNU diff3 or whatever). And we have to ensure that do this atomically somehow; so that nobody else can log in concurrently and sneak in their version. I don't understand why you and your colleagues don't use version control and put in place a release process whereby some designated person who currently holds the "release master stick" checks out a baseline from version control and FTP's it up to the server. This person could actually be a script that runs periodically or is triggered by commits to the master repo. Your master repository doesn't have to be on that server under the admin's control; it can be on a machine that is under the control of you and your collaborators.
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
sitecopy-like software for FTP upload Victor Porton <porton@narod.ru> - 2014-04-16 23:29 +0300
Re: sitecopy-like software for FTP upload Kaz Kylheku <kaz@kylheku.com> - 2014-04-16 20:44 +0000
Re: sitecopy-like software for FTP upload Victor Porton <porton@narod.ru> - 2014-04-17 00:02 +0300
Re: sitecopy-like software for FTP upload Öö Tiib <ootiib@hot.ee> - 2014-04-21 05:00 -0700
Re: sitecopy-like software for FTP upload Ian Collins <ian-news@hotmail.com> - 2014-04-23 16:19 +1200
Re: sitecopy-like software for FTP upload Kaz Kylheku <kaz@kylheku.com> - 2014-04-23 04:39 +0000
csiph-web