Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #54449 > unrolled thread
| Started by | Dan Purgert <dan@djph.net> |
|---|---|
| First post | 2019-03-15 18:19 +0000 |
| Last post | 2019-03-20 12:53 +0100 |
| Articles | 20 on this page of 100 — 16 participants |
Back to article view | Back to alt.os.linux
Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-15 18:19 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-15 19:06 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-18 11:13 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-18 16:40 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-19 10:24 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Mike Easter <MikeE@ster.invalid> - 2019-03-15 16:17 -0700
Re: Remote backups with rsync - discussion / tutorial, I guess. jjb <invalid@invalid.nl> - 2019-03-16 10:14 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. Chris Elvidge <chris@mshome.net> - 2019-03-16 09:26 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-16 16:54 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-16 16:57 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-16 11:06 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-17 12:52 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Allodoxaphobia <trepidation@example.net> - 2019-03-17 17:32 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Java Jive <java@evij.com.invalid> - 2019-03-18 12:29 +0000
DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-18 16:32 +0000
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) Java Jive <java@evij.com.invalid> - 2019-03-18 16:40 +0000
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) "R.Wieser" <address@not.available> - 2019-03-18 17:59 +0100
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) Adrian Caspersz <email@here.invalid> - 2019-03-18 17:51 +0000
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) "R.Wieser" <address@not.available> - 2019-03-18 19:00 +0100
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) "Carlos E.R." <robin_listas@es.invalid> - 2019-03-18 20:16 +0100
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) Dan Purgert <dan@djph.net> - 2019-03-19 10:19 +0000
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) "Carlos E.R." <robin_listas@es.invalid> - 2019-03-19 12:06 +0100
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) Dan Purgert <dan@djph.net> - 2019-03-19 12:42 +0000
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) "Carlos E.R." <robin_listas@es.invalid> - 2019-03-19 19:36 +0100
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) Dan Purgert <dan@djph.net> - 2019-03-20 10:17 +0000
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) Java Jive <java@evij.com.invalid> - 2019-03-19 13:24 +0000
Re: DOS/Windows "COPY" command (Was: Remote backups with rsync - discussion / tutorial, I guess.) "Carlos E.R." <robin_listas@es.invalid> - 2019-03-19 19:38 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. Adrian Caspersz <email@here.invalid> - 2019-03-18 17:47 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-19 00:29 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Chris Elvidge <chris@mshome.net> - 2019-03-19 09:02 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. "Carlos E.R." <robin_listas@es.invalid> - 2019-03-19 12:07 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-19 13:57 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. "Carlos E.R." <robin_listas@es.invalid> - 2019-03-19 19:45 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-20 08:52 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. "Carlos E.R." <robin_listas@es.invalid> - 2019-03-20 11:24 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-20 11:31 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-20 15:03 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-20 17:05 +0000
Why I don't like "rsync"... (Was: Remote backups with rsync - discussion / tutorial, I guess.) gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-20 12:08 +0000
Re: Why I don't like "rsync"... (Was: Remote backups with rsync - discussion / tutorial, I guess.) Chris Elvidge <chris@mshome.net> - 2019-03-20 13:04 +0000
Re: Why I don't like "rsync"... Richard Kettlewell <invalid@invalid.invalid> - 2019-03-20 13:47 +0000
Re: Why I don't like "rsync"... "Carlos E.R." <robin_listas@es.invalid> - 2019-03-22 19:41 +0100
Re: Why I don't like "rsync"... gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-24 09:36 +0000
Re: Why I don't like "rsync"... Richard Kettlewell <invalid@invalid.invalid> - 2019-03-24 09:59 +0000
Re: Why I don't like "rsync"... gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-24 10:36 +0000
Re: Why I don't like "rsync"... Richard Kettlewell <invalid@invalid.invalid> - 2019-03-24 11:12 +0000
Re: Why I don't like "rsync"... gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-24 11:29 +0000
Re: Why I don't like "rsync"... Richard Kettlewell <invalid@invalid.invalid> - 2019-03-24 13:04 +0000
Re: Why I don't like "rsync"... gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-24 13:16 +0000
Re: Why I don't like "rsync"... Dan Purgert <dan@djph.net> - 2019-03-25 10:37 +0000
Re: Why I don't like "rsync"... (Was: Remote backups with rsync - discussion / tutorial, I guess.) William Unruh <unruh@invalid.ca> - 2019-03-20 15:19 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-20 12:44 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-20 13:58 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-20 15:00 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-20 15:49 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-20 17:57 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-20 23:39 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Jasen Betts <jasen@xnet.co.nz> - 2019-03-21 08:15 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-21 09:00 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-21 13:11 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-21 14:03 +0000
rsync --archive Ivan Shmakov <ivan@siamics.net> - 2019-03-21 18:10 +0000
Re: rsync --archive Richard Kettlewell <invalid@invalid.invalid> - 2019-03-21 21:42 +0000
Re: rsync --archive "Carlos E.R." <robin_listas@es.invalid> - 2019-03-22 19:54 +0100
Re: rsync --archive Ivan Shmakov <ivan@miko.siamics.net> - 2019-03-23 04:32 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-21 18:54 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Jasen Betts <jasen@xnet.co.nz> - 2019-03-22 10:03 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-21 18:50 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-21 21:31 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. "Carlos E.R." <robin_listas@es.invalid> - 2019-03-22 19:48 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-20 15:07 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-20 14:57 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Richard Kettlewell <invalid@invalid.invalid> - 2019-03-20 15:54 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-20 17:49 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Jasen Betts <jasen@xnet.co.nz> - 2019-03-21 08:21 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Jasen Betts <jasen@xnet.co.nz> - 2019-03-19 20:50 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-20 02:40 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-20 08:19 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-20 02:37 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Jasen Betts <jasen@xnet.co.nz> - 2019-03-19 19:53 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. "Carlos E.R." <robin_listas@es.invalid> - 2019-03-19 21:25 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. Java Jive <java@evij.com.invalid> - 2019-03-19 22:04 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-18 11:20 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. "Carlos E.R." <robin_listas@es.invalid> - 2019-03-18 13:07 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-18 12:43 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. "Carlos E.R." <robin_listas@es.invalid> - 2019-03-18 14:32 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-18 16:44 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Daniel60 <daniel47@eternal-september.org> - 2019-03-16 23:52 +1100
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-18 11:49 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. "Carlos E.R." <robin_listas@es.invalid> - 2019-03-18 13:11 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. Dan Purgert <dan@djph.net> - 2019-03-18 12:45 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. William Unruh <unruh@invalid.ca> - 2019-03-18 18:12 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Chris Elvidge <chris@mshome.net> - 2019-03-18 19:12 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Chris Elvidge <chris@mshome.net> - 2019-03-18 19:19 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. Daniel60 <daniel47@eternal-september.org> - 2019-04-02 22:37 +1100
Re: Remote backups with rsync - discussion / tutorial, I guess. jjb <invalid@invalid.nl> - 2019-03-19 12:49 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. Jasen Betts <jasen@xnet.co.nz> - 2019-03-19 21:08 +0000
Re: Remote backups with rsync - discussion / tutorial, I guess. jjb <invalid@invalid.nl> - 2019-03-20 12:51 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. jjb <invalid@invalid.nl> - 2019-03-20 10:37 +0100
Re: Remote backups with rsync - discussion / tutorial, I guess. jjb <invalid@invalid.nl> - 2019-03-20 12:53 +0100
Page 3 of 5 — ← Prev page 1 2 [3] 4 5 Next page →
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-03-20 13:47 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <871s31u06p.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #54513 |
gazelle@shell.xmission.com (Kenny McCormack) writes: > The solution is a concept of "compatibility levels". This could be either > an environment variable or a command line option (or both) that allows you > to say "I'm working at level X" - which, in practice, will usually mean "I > started using this tool at level X and will probably live the rest of my > life at this level". In particular, this means that I don't care about all > the historical baggage - I want the tool to do the right thing now. I want > it to reliably duplicate files out-of-the-box; I don't want to have to > specify command line options: -ksjhfi7q24hf29875rhfewi4nkcfhh to make it do > that. But, by default, the tool would still require all those options, if > no compatibility level is specified. In this example, I think all that is needed is a new command line option, with a name like --exact-archive, which makes as exact a copy as rsync knows how, in any given version. > One effect of all this is that the rsync "man" page would start with a > "Quick Start" section that would say: > > To get started, do (3 as an example): > > export RSYNC_COMPATIBILITY_LEVEL=3 > > then ignore the rest of this man page. Old-timers can read the rest if > they do desire. An environment variable is the wrong answer here; it would incompatibly change the behavior of any program that happened to use rsync. > I've seen many tools that do this sort of thing. Consider the C > world, where it happens all the time. The default is the old > behavior, but if you request the new behavior, you get it. BTW, one > place where trouble awaits is that the default standard, in the > popular compilers, changes over time. > > I've seen people get caught by assuming that the default C standard > would remain C90 forever. I.e., that that's what you'll get if you > don't specify any "-std=" command line option. Current versions of > gcc default to either C99 or C11 (not sure which) and the result is > that people quickly learn to *always* specify a "-std=" command line > option. There’s an awful lot of compiler behavior that changes over time independently of standards compliance mode. -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-03-22 19:41 +0100 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <bsmfmf-ll6.ln1@Telcontar.valinor> |
| In reply to | #54516 |
On 20/03/2019 14.47, Richard Kettlewell wrote: > gazelle@shell.xmission.com (Kenny McCormack) writes: >> The solution is a concept of "compatibility levels". This could be either >> an environment variable or a command line option (or both) that allows you >> to say "I'm working at level X" - which, in practice, will usually mean "I >> started using this tool at level X and will probably live the rest of my >> life at this level". In particular, this means that I don't care about all >> the historical baggage - I want the tool to do the right thing now. I want >> it to reliably duplicate files out-of-the-box; I don't want to have to >> specify command line options: -ksjhfi7q24hf29875rhfewi4nkcfhh to make it do >> that. But, by default, the tool would still require all those options, if >> no compatibility level is specified. > > In this example, I think all that is needed is a new command line > option, with a name like --exact-archive, which makes as exact a copy as > rsync knows how, in any given version. Yes! That would be a good idea, IMHO. > >> One effect of all this is that the rsync "man" page would start with a >> "Quick Start" section that would say: >> >> To get started, do (3 as an example): >> >> export RSYNC_COMPATIBILITY_LEVEL=3 >> >> then ignore the rest of this man page. Old-timers can read the rest if >> they do desire. > > An environment variable is the wrong answer here; it would incompatibly > change the behavior of any program that happened to use rsync. There is a problem with changing behaviour of the program like that: that another person coming to maintain a system would hit differences unless he notices that there is such a switch used (the default would still be the "old behaviour"). >> I've seen many tools that do this sort of thing. Consider the C >> world, where it happens all the time. The default is the old >> behavior, but if you request the new behavior, you get it. BTW, one >> place where trouble awaits is that the default standard, in the >> popular compilers, changes over time. >> >> I've seen people get caught by assuming that the default C standard >> would remain C90 forever. I.e., that that's what you'll get if you >> don't specify any "-std=" command line option. Current versions of >> gcc default to either C99 or C11 (not sure which) and the result is >> that people quickly learn to *always* specify a "-std=" command line >> option. > > There’s an awful lot of compiler behavior that changes over time > independently of standards compliance mode. And makes old programs not compile any longer. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-03-24 09:36 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <q77j2k$bq7$1@news.xmission.com> |
| In reply to | #54516 |
In article <871s31u06p.fsf@LkoBDZeT.terraraq.uk>,
Richard Kettlewell <invalid@invalid.invalid> wrote:
>gazelle@shell.xmission.com (Kenny McCormack) writes:
>> The solution is a concept of "compatibility levels". This could be either
>> an environment variable or a command line option (or both) that allows you
>> to say "I'm working at level X" - which, in practice, will usually mean "I
>> started using this tool at level X and will probably live the rest of my
>> life at this level". In particular, this means that I don't care about all
>> the historical baggage - I want the tool to do the right thing now. I want
>> it to reliably duplicate files out-of-the-box; I don't want to have to
>> specify command line options: -ksjhfi7q24hf29875rhfewi4nkcfhh to make it do
>> that. But, by default, the tool would still require all those options, if
>> no compatibility level is specified.
>
>In this example, I think all that is needed is a new command line
>option, with a name like --exact-archive, which makes as exact a copy as
>rsync knows how, in any given version.
Yes. That is a good idea.
But it should be the default action.
Again, to all the loonies who have posted to this thread and may be reading
this post, this change (making it the default) probably won't ever be made
to rsync, given the way things are, but if it had been designed from the
start, this is the way it would have been.
>> One effect of all this is that the rsync "man" page would start with a
>> "Quick Start" section that would say:
>>
>> To get started, do (3 as an example):
>>
>> export RSYNC_COMPATIBILITY_LEVEL=3
>>
>> then ignore the rest of this man page. Old-timers can read the rest if
>> they do desire.
>
>An environment variable is the wrong answer here; it would incompatibly
>change the behavior of any program that happened to use rsync.
Disagree. The point is that this problem is inherent to Unix (and probably
other/most OSes, but seems to be most focussed in Unix). That is that if
you give people shell access, they will be able to change their environment
(term interpreted more generally than just environment variables) and this
can causes programs and scripts to malfunction. Here's just a short list
of things they can change that can cause problems:
1) PATH
If the user happens to have $HOME/bin at the top of his path (as is
the default in Debian Linux distros) and happens to have his own
copy of rsync there, well you can see what could happen...
2) umask
3) Other environment variables. Note that I list this separately from
PATH because PATH is the biggie and the one most commonly used to
mess things up.
4) Plenty of others that I haven't thought of yet...
There are, in turn, (at least) 3 ways that developers can react to this
(presented in no particular order and with no particular value judgements
attached):
1) Blame it on the user (Garbage In, Garbage Out)
2) Deny them shell access
3) Harden up your scripts. Note that many scripts do, in fact, set
their own PATH for just this reason. If you are writing a script
that absolutely, positively, depends on rsync behaving in a certain
way, then you should "unset" the relevant variables in your script.
Note, incidentally, that I really don't see how/why a developer would
*want* the old behavior (i.e., not copying all the latest metadata), unless
they are really doing something strange. As you've pointed out, it is
actually hard to imagine a situation where you will want your script to
only copy the metadata of which you were aware when you wrote the script.
And let me add, again to the detractors on these threads, that the problem
isn't that a new version of, say, --archive (or the proposed
--exact-archive, which I would just call --copy or --doTheRightThing),
would do something different than what the developer knew about when he
wrote the script. Rather, the problem is that, say a new functionality
(new kind of metadata) gets added to the filesystem today, and your users
start using and relying upon that new metadata. But your script hasn't
been updated to use it. User has problem and needs file restored. User is
P*ssed that restored file doesn't work like his original file.
That's why the default action should just be to Just Do The Right Thing,
but, failing that, at least there should be an option --doTheRightThing
that will always do the right thing. But, as I've argued above, if the
rsync developers went the "compatibility level" route, you wouldn't even
need to do that.
Of course, for all this to work right, you have to keep your system updated
(apt-get update; apt-get dist-upgrade, on Debian systems).
P.S. Here's another story that I'd like to tell, regarding this idea of a
"compatibility level":
There's a program called "par" that I use every day; it is the best
paragraph reformatter, like, ever. But here's the thing: The man page
tells you that in order to get sensible behavior, you should start by
setting PARINIT=LongStringOfGibberishCharacters. Basically, the man page
says "Don't ask why. Just do it." Which then begs the question: If you
need all these options to get sensible behavior, why isn't it just the
default? Why do I (and every other user) have to do this?
Well, the answer, of course, is backward compatibility. If those options
were the default, then old scripts written for the old behavior would
break. Which, in turn, means that if you do set the environment variable
as directed, then run some old script that depends on the old behavior,
well, you see what will happen... But as I say, this is just inherent to
the way Unix (and probably many/most other OSes) is.
I would have preferred that the "par" author had gone with a "compatibility
level" idea rather than LongStringOfGibberishCharacters, but that's a small
point. The real point is that scripts need to really harden themselves up
if they want to be proof against future change.
And that's all I have to say about that...
>> I've seen many tools that do this sort of thing. Consider the C
>> world, where it happens all the time. The default is the old
>> behavior, but if you request the new behavior, you get it. BTW, one
>> place where trouble awaits is that the default standard, in the
>> popular compilers, changes over time.
>>
>> I've seen people get caught by assuming that the default C standard
>> would remain C90 forever. I.e., that that's what you'll get if you
>> don't specify any "-std=" command line option. Current versions of
>> gcc default to either C99 or C11 (not sure which) and the result is
>> that people quickly learn to *always* specify a "-std=" command line
>> option.
>
>There's an awful lot of compiler behavior that changes over time
>independently of standards compliance mode.
Not sure what you're getting at here, but yeah, there are always other
things to worry about. Still, my point, is that you shouldn't rely on the
default standard being C89; you should always specify a "-std=" (when using
gcc, not sure about other compilers).
--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/God
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-03-24 09:59 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <87d0mgr3sn.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #54567 |
gazelle@shell.xmission.com (Kenny McCormack) writes: > Richard Kettlewell <invalid@invalid.invalid> wrote: >> An environment variable is the wrong answer here; it would >> incompatibly change the behavior of any program that happened to use >> rsync. > > Disagree. The point is that this problem is inherent to Unix (and probably > other/most OSes, but seems to be most focussed in Unix). That is that if > you give people shell access, they will be able to change their environment > (term interpreted more generally than just environment variables) and this > can causes programs and scripts to malfunction. Here's just a short list > of things they can change that can cause problems: > > 1) PATH > If the user happens to have $HOME/bin at the top of his path (as is > the default in Debian Linux distros) and happens to have his own > copy of rsync there, well you can see what could happen... > 2) umask > 3) Other environment variables. Note that I list this separately from > PATH because PATH is the biggie and the one most commonly used to > mess things up. > 4) Plenty of others that I haven't thought of yet... Having observed that all this implicit configuration causes trouble, you shouldn’t be so eager to introduce more of it. > There are, in turn, (at least) 3 ways that developers can react to this > (presented in no particular order and with no particular value judgements > attached): > > 1) Blame it on the user (Garbage In, Garbage Out) > 2) Deny them shell access > 3) Harden up your scripts. Note that many scripts do, in fact, set > their own PATH for just this reason. If you are writing a script > that absolutely, positively, depends on rsync behaving in a certain > way, then you should "unset" the relevant variables in your script. In this particular case, that would require a time machine, since nobody using a rsync in a script yet knows what your proposed environment variable would be called. > Note, incidentally, that I really don't see how/why a developer would > *want* the old behavior (i.e., not copying all the latest metadata), > unless they are really doing something strange. That looks suspicously like an argument from lack of imagination. -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-03-24 10:36 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <q77mij$dcc$1@news.xmission.com> |
| In reply to | #54568 |
In article <87d0mgr3sn.fsf@LkoBDZeT.terraraq.uk>, Richard Kettlewell <invalid@invalid.invalid> wrote: >gazelle@shell.xmission.com (Kenny McCormack) writes: >> Richard Kettlewell <invalid@invalid.invalid> wrote: > >>> An environment variable is the wrong answer here; it would >>> incompatibly change the behavior of any program that happened to use >>> rsync. >> >> Disagree. The point is that this problem is inherent to Unix (and probably >> other/most OSes, but seems to be most focussed in Unix). That is that if >> you give people shell access, they will be able to change their environment >> (term interpreted more generally than just environment variables) and this >> can causes programs and scripts to malfunction. Here's just a short list >> of things they can change that can cause problems: >> >> 1) PATH >> If the user happens to have $HOME/bin at the top of his path (as is >> the default in Debian Linux distros) and happens to have his own >> copy of rsync there, well you can see what could happen... >> 2) umask >> 3) Other environment variables. Note that I list this separately from >> PATH because PATH is the biggie and the one most commonly used to >> mess things up. >> 4) Plenty of others that I haven't thought of yet... > >Having observed that all this implicit configuration causes trouble, you >shouldn't be so eager to introduce more of it. Heh heh. No, actually, I was arguing that it is what it is. I.e., it is implicit in the way Unix (and other OSes) are, so you need to get used to it. >> There are, in turn, (at least) 3 ways that developers can react to this >> (presented in no particular order and with no particular value judgements >> attached): >> >> 1) Blame it on the user (Garbage In, Garbage Out) >> 2) Deny them shell access >> 3) Harden up your scripts. Note that many scripts do, in fact, set >> their own PATH for just this reason. If you are writing a script >> that absolutely, positively, depends on rsync behaving in a certain >> way, then you should "unset" the relevant variables in your script. > >In this particular case, that would require a time machine, since nobody >using a rsync in a script yet knows what your proposed environment >variable would be called. Well, this whole discussion is mostly theoretical. It's all "time machine" in the sense that this is how (IMNSHO) it would have been done from the start if it had actually been designed from the start. If it (compatibility levels) *were* to be implemented in some (future) version of "rsync", then, of course, at that point, script writers would become aware of its existence (and the actual name of the environment variable, as determined by the "rsync" developers). It would, seriously, it would, all work itself out. >> Note, incidentally, that I really don't see how/why a developer would >> *want* the old behavior (i.e., not copying all the latest metadata), >> unless they are really doing something strange. > >That looks suspiciously like an argument from lack of imagination. This was *your* argument. Somewhere upthread you asked (rhetorically) why anyone would want to do an incomplete copy - i.e., one that did not include all known (known at the time of writing) metadata. This, in turn, led to a spurious discussion of hard links, with someone fallaciously claiming that correctly dealing with hard links would be expensive. I.e., arguing that it was better for the default copy to omit some kinds of metadata because copying said metadata was prohibitively expensive. -- Men rarely (if ever) manage to dream up a God superior to themselves. Most Gods have the manners and morals of a spoiled child.
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-03-24 11:12 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <877ecor0fw.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #54569 |
gazelle@shell.xmission.com (Kenny McCormack) writes: > Richard Kettlewell <invalid@invalid.invalid> wrote: >>gazelle@shell.xmission.com (Kenny McCormack) writes: >>> Note, incidentally, that I really don't see how/why a developer would >>> *want* the old behavior (i.e., not copying all the latest metadata), >>> unless they are really doing something strange. >> >>That looks suspiciously like an argument from lack of imagination. > > This was *your* argument. Somewhere upthread you asked (rhetorically) why > anyone would want to do an incomplete copy - i.e., one that did not include > all known (known at the time of writing) metadata. However, I accepted from the start that someone might want that, even though nobody’s actually been able to articulate who that might be or why they would want it, and my proposals have taken that possibility into account, and would not require any changes of such people. -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-03-24 11:29 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <q77pn8$epa$1@news.xmission.com> |
| In reply to | #54570 |
In article <877ecor0fw.fsf@LkoBDZeT.terraraq.uk>,
Richard Kettlewell <invalid@invalid.invalid> wrote:
>gazelle@shell.xmission.com (Kenny McCormack) writes:
>> Richard Kettlewell <invalid@invalid.invalid> wrote:
>>>gazelle@shell.xmission.com (Kenny McCormack) writes:
>>>> Note, incidentally, that I really don't see how/why a developer would
>>>> *want* the old behavior (i.e., not copying all the latest metadata),
>>>> unless they are really doing something strange.
>>>
>>>That looks suspiciously like an argument from lack of imagination.
>>
>> This was *your* argument. Somewhere upthread you asked (rhetorically) why
>> anyone would want to do an incomplete copy - i.e., one that did not include
>> all known (known at the time of writing) metadata.
>
>However, I accepted from the start that someone might want that, even
>though nobody's actually been able to articulate who that might be or
>why they would want it, and my proposals have taken that possibility
>into account, and would not require any changes of such people.
Nor would mine (AFAICT). Other than as mentioned below in 2).
My idea was that if (and only if) you set RSYNC_COMPATIBILITY_LEVEL to
something (in an earlier example, I posited the value 3, for purely
arbitrary reasons), then you'd get the new behavior. If you do not set
this variable, then you get the same-old, same-old.
Notes:
1) That's why I brought up the example of "par". There's a situation
where, in order to get sensible behavior going forward, you have to
set the environment variable, but the default (if you do nothing)
is to get the old behavior.
And note, it's not *me* saying you need to set the environment
variable in order to get "sensible" behavior (in "par"). It's the
program author (the author of "par"). Similarly, I wouldn't expect
anyone using "rsync" to do this on *my* say-so; it would have to
come from the official "rsync" developers/maintainers.
2) Yes, the script would have to "unset" the compatibility variable, if
it really did depend on the old behavior. Just as anything written
for the old version of "par" would need to "unset" the variable
that "par" uses for this purpose. Sorry, but I see this as
unavoidable. No matter how "cast in stone" you might think your
script is, you always have to allow for the fact that a new version
of the underlying tool might force you to make changes. You've got
to keep abreast of new developments and be willing to adjust
accordingly.
3) However, my guess is that such situations would be rare. Most
scripts will gladly welcome the new behavior. As I mentioned a few
posts back, your users will expect it.
--
I voted for Trump because I thought he'd make pussy grabbing legal.
I honestly don't see any other way America could be made great again.
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-03-24 13:04 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <871s2wqv8j.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #54571 |
gazelle@shell.xmission.com (Kenny McCormack) writes: > My idea was that if (and only if) you set RSYNC_COMPATIBILITY_LEVEL to > something (in an earlier example, I posited the value 3, for purely > arbitrary reasons), then you'd get the new behavior. If you do not set > this variable, then you get the same-old, same-old. Ah, sorry, I’d misunderstood which way around you were proposing it. Apologies. -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-03-24 13:16 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <q77vv3$hvn$1@news.xmission.com> |
| In reply to | #54572 |
In article <871s2wqv8j.fsf@LkoBDZeT.terraraq.uk>,
Richard Kettlewell <invalid@invalid.invalid> wrote:
>gazelle@shell.xmission.com (Kenny McCormack) writes:
>> My idea was that if (and only if) you set RSYNC_COMPATIBILITY_LEVEL to
>> something (in an earlier example, I posited the value 3, for purely
>> arbitrary reasons), then you'd get the new behavior. If you do not set
>> this variable, then you get the same-old, same-old.
>
>Ah, sorry, I'd misunderstood which way around you were proposing
>it. Apologies.
No problem. Glad we're clear now.
The idea is that it is analogous with "par". You set the variable and you
get sensible behavior going forward. You don't set it and you get the old,
compatible behavior.
And note that (in both cases, "rsync" and "par") it *is* a numeric
variable, not a boolean. If I set the variable to value like "3", then I'm
saying I want it to behave like it did when version 3 was the latest
version of the tool. When, at some point, version 4 is released, new users
would then be encouraged to set the variable to 4, so they get the newest,
latest behavior, but I might continue to use 3 as my value, so that I don't
have to re-check my scripts. Of course, by doing so, I might miss out on
new features.
Maybe it should actually be 3-valued:
1) Unset -> original, most compatible behavior
2) Set to a number -> Get that level behavior
3) Set to "latest" -> Get the latest, whatever that is.
As I've argued, most scripts will want the latest behavior, so that they
get the latest metadata copied, whatever that is. So, I'd expect people to
set it to "latest", but of course, everyone can do as they like.
--
"Women should not be enlightened or educated in any way. They should be
segregated because they are the cause of unholy erections in holy men.
-- Saint Augustine (354-430) --
[toc] | [prev] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2019-03-25 10:37 +0000 |
| Subject | Re: Why I don't like "rsync"... |
| Message-ID | <slrnq9hbqo.n0k.dan@djph.net> |
| In reply to | #54570 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Richard Kettlewell wrote: > gazelle@shell.xmission.com (Kenny McCormack) writes: >> Richard Kettlewell <invalid@invalid.invalid> wrote: >>>gazelle@shell.xmission.com (Kenny McCormack) writes: >>>> Note, incidentally, that I really don't see how/why a developer would >>>> *want* the old behavior (i.e., not copying all the latest metadata), >>>> unless they are really doing something strange. >>> >>>That looks suspiciously like an argument from lack of imagination. >> >> This was *your* argument. Somewhere upthread you asked >> (rhetorically) why anyone would want to do an incomplete copy - i.e., >> one that did not include all known (known at the time of writing) >> metadata. > > However, I accepted from the start that someone might want that, even > though nobody’s actually been able to articulate who that might be or > why they would want it, and my proposals have taken that possibility > into account, and would not require any changes of such people. Might've gotten lost in the churn -- but I did find that as certain features were added in the 2000s (iirc, xattrs) , it turned out they caused crashes, or other undesirable behavior if the other end didn't support said features. Given the "long term" style of both RHEL and Debian, it's pretty easy to have two systems that would have incompatible versions -- even as simple as updating from "Debian oldstable" to "Debian stable". -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlyYr1cACgkQjhHd8xJ5 ooEcQAf+MqHb8zN7o7ZQOBNQariyR+jq+dW3GMXmj21EQIvw31iXTBbeUpwqxVOO orwncCHI/sGhg13Y4bJt3ECrRccGaLcjSRQL2IFQp4mTEch/7gq9ztyqnBpaLwsh suyQDZ+vi2FH5FyqIVJKw5CrUOOFkYsIO0epAJaQzDZsTdMElUddxGF1Pq1JAqoE ZTcVfQ9jqVYjOAZtiuGm8bpDeHEgKpDAWEQ6dIjN8vCV4FoqSAR4xWnMt3h2o+a+ HrHcbMrR7qPSuGLC+nskGNHRDRLqQpzjCfCCKvo1pqT+EYyUC0/VbmcGS3TCxjC5 yC3XNm8eCzLEaAsAwJnRYD9XCHm1iA== =krQz -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Date | 2019-03-20 15:19 +0000 |
| Subject | Re: Why I don't like "rsync"... (Was: Remote backups with rsync - discussion / tutorial, I guess.) |
| Message-ID | <q6tlmd$qos$4@dont-email.me> |
| In reply to | #54513 |
On 2019-03-20, Kenny McCormack <gazelle@shell.xmission.com> wrote: > In article <877ecuszam.fsf@LkoBDZeT.terraraq.uk>, > Richard Kettlewell <invalid@invalid.invalid> wrote: > ... >>> And even if they wanted to change the defaults, they probably would >>> not do it, because that would change the behaviour of existing scripts >>> of people, which would be even worse. >> >>Yes, it's too late now. A bit of thought up-front would have been a good idea. > > Indeed. But like most programs we use, it was never really designed and it > was allowed to grow "organically". > > But, fortunately, there is an easy solution to this general sort of problem. > > First, let's agree to assume two things: > 1) The current situation is a mess, but needs to be kept as is for > compatibility. I.e., people use this as a backup tool and, as has > been mentioned, it is critical that backup tools behave > predictably. Existing scripts and users must be supported. I am still not clear on why it is a "mess". Yes, rsync has many options. And yes there is a single option which does most of what most people want. > > 2) It should be possible for newusers, unencumbered with historical > baggage, to start using the tool easily. There needs to be a > "quick on-ramp" for first time users. It should work > "out-of-the-box". In particular, it should know how to reliably > duplicate files without the need for a lot of command line > nonsense. It does. -a does most of what most people want. Not everything YOU want, but that is whythe other options are there. > > The solution is a concept of "compatibility levels". This could be either > an environment variable or a command line option (or both) that allows you > to say "I'm working at level X" - which, in practice, will usually mean "I > started using this tool at level X and will probably live the rest of my > life at this level". In particular, this means that I don't care about all > the historical baggage - I want the tool to do the right thing now. I want > it to reliably duplicate files out-of-the-box; I don't want to have to > specify command line options: -ksjhfi7q24hf29875rhfewi4nkcfhh to make it do > that. But, by default, the tool would still require all those options, if > no compatibility level is specified. It does that with the -a option. Maybe not exactly what you want, but then what makes you the arbiter of what most would want. > > One effect of all this is that the rsync "man" page would start with a > "Quick Start" section that would say: > > To get started, do (3 as an example): > > export RSYNC_COMPATIBILITY_LEVEL=3 > > then ignore the rest of this man page. Old-timers can read the rest if > they do desire. o The first example in the man page ( after a geenral description of what rsync does and how it works) is -t to transfer a single file, and then -a to transfer a backup of a directory or whatever. What in the world else do you want? > > I've seen many tools that do this sort of thing. Consider the C world, > where it happens all the time. The default is the old behavior, but if you > request the new behavior, you get it. BTW, one place where trouble awaits > is that the default standard, in the popular compilers, changes over time. The default in rsync is that it does nothing. (which is I guess what you object to). -a does most of what most people want from it. Then there are the other options to do the many other things people may want. > > I've seen people get caught by assuming that the default C standard would > remain C90 forever. I.e., that that's what you'll get if you don't > specify any "-std=" command line option. Current versions of gcc default > to either C99 or C11 (not sure which) and the result is that people quickly > learn to *always* specify a "-std=" command line option. > And how are we now jumping to your unhappiness with C compilers? Or is this change a good thing. The default should be the good old Fortran 1 behaviour since fortran was the first computer compiler? "Let me sit here on the sidelines and snipe at people who actually do some work to be useful to others."
[toc] | [prev] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2019-03-20 12:44 +0000 |
| Message-ID | <slrnq94dd1.n0k.dan@djph.net> |
| In reply to | #54506 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Richard Kettlewell wrote: > "Carlos E.R." <robin_listas@es.invalid> writes: >> On 19/03/2019 14.57, Kenny McCormack wrote: >>> Carlos E.R. <robin_listas@es.invalid> wrote: >>>>> -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) >>>> >>>> --archive does not include everything needed: Sparse, hard links, >>>> attributes, acls... >>> >>> That is exactly the problem. That even after you use "-a", you still gotta >>> learn about all those other options. That's why I don't like "rsync". >>> >>> (someone OT) >>> I'm reminded of another computer system I used to use (which will >>> remain nameless) that had a very bizarre file system. It was very >>> nice, mind you, but very different from the simple "one byte follows >>> another" model of Unix. The effect was that the system's "copy" >>> command did very unexpected things (all logical, mind you) if your >>> goal was simply to make a duplicate of your file (as it usually is). >>> As a result, there was another command called, not surprisingly, >>> "duplicate" - which just did the right thing. Not surprisingly, >>> people quickly learned to (almost) always use "duplicate" and never >>> to use "copy" (unless they really knew and needed its capabilities). >>> >>> "rsync" could take a lesson from and learn from this experience. >> >> No, because the understanding of what must be the default behaviour >> varies. You simply configure your defaults using an alias. > > --archive isn’t default behavior, though - it’s an alias for preserving > “almost everything”. Frankly it’s a silly grouping of options: Or is it that, when "--archive" was introduced, there weren't as many features -- acls and xattrs and whatever else makes a "sane default" to you? Rsync - initial release June, 1996 acls - apparently 1990s, but I can't find an exact date xattrs - apparently added to Linux in 2002 Given the current state of "--archive" (i.e. not including acls / attrs), I imagine that there is some undesirable effect when trying to run those switches on a system that doesn't support them. Therefore, the only way to ensure compatibility with "old" scripts using the '--archive' switch is to leave '--archive' alone. -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlySNZ8ACgkQjhHd8xJ5 ooEmgAf8C1E5C88QYC6H7TEM4nsdWKswm9MSwnTb/JRE17q8E9vh8T0B52J1+yE4 a3noh7AvUOxCvLdafYFGdhrQCgj2bTviJDbL2jg4RulpbiZpTjFh8WA4A/KxNRhc HHQ0zy5o+w3rvcI7MUk1xqYI4aVkuC6uBLse1IMm8ru1jUbfYMvmU+ZwlogUiabw 7EKd5musdra8Mcq86qOHzkFG83ptbGn34UP0NPAbfJddBAfceGV9BF1oUCzAlQMO d++nN1oOa1TB8Xlz0iyBC+iiQVBIijhxWRG7epn3MyQR0zn8USb2FwMy45DXbOCj hWIaBLYm9HJKbWfdepQyLbLJAfsyRg== =6rmN -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-03-20 13:58 +0000 |
| Message-ID | <87va0dsl49.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #54514 |
Dan Purgert <dan@djph.net> writes: > Richard Kettlewell wrote: >> "Carlos E.R." <robin_listas@es.invalid> writes: >>> On 19/03/2019 14.57, Kenny McCormack wrote: >>>> Carlos E.R. <robin_listas@es.invalid> wrote: >>>>>> -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) >>>>> >>>>> --archive does not include everything needed: Sparse, hard links, >>>>> attributes, acls... >>>> >>>> That is exactly the problem. That even after you use "-a", you still gotta >>>> learn about all those other options. That's why I don't like "rsync". >>>> >>>> (someone OT) >>>> I'm reminded of another computer system I used to use (which will >>>> remain nameless) that had a very bizarre file system. It was very >>>> nice, mind you, but very different from the simple "one byte follows >>>> another" model of Unix. The effect was that the system's "copy" >>>> command did very unexpected things (all logical, mind you) if your >>>> goal was simply to make a duplicate of your file (as it usually is). >>>> As a result, there was another command called, not surprisingly, >>>> "duplicate" - which just did the right thing. Not surprisingly, >>>> people quickly learned to (almost) always use "duplicate" and never >>>> to use "copy" (unless they really knew and needed its capabilities). >>>> >>>> "rsync" could take a lesson from and learn from this experience. >>> >>> No, because the understanding of what must be the default behaviour >>> varies. You simply configure your defaults using an alias. >> >> --archive isn’t default behavior, though - it’s an alias for >> preserving “almost everything”. Frankly it’s a silly grouping of >> options: > > Or is it that, when "--archive" was introduced, there weren't as many > features -- acls and xattrs and whatever else makes a "sane default" > to you? > > Rsync - initial release June, 1996 > acls - apparently 1990s, but I can't find an exact date > xattrs - apparently added to Linux in 2002 That theory doesn’t account for the fact that --archive also does not preserve filesystem features dating from the 1970s. > Given the current state of "--archive" (i.e. not including acls / > attrs), I imagine that there is some undesirable effect when trying to > run those switches on a system that doesn't support them. > > Therefore, the only way to ensure compatibility with "old" scripts using > the '--archive' switch is to leave '--archive' alone. Yes, it’s too late now. A bit of thought up-front would have been a good idea. Oh wait, I already said exactly that, but you ignored it. -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2019-03-20 15:00 +0000 |
| Message-ID | <slrnq94ld1.n0k.dan@djph.net> |
| In reply to | #54517 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Richard Kettlewell wrote: > Dan Purgert <dan@djph.net> writes: >>> --archive isn’t default behavior, though - it’s an alias for >>> preserving “almost everything”. Frankly it’s a silly grouping of >>> options: >> >> Or is it that, when "--archive" was introduced, there weren't as many >> features -- acls and xattrs and whatever else makes a "sane default" >> to you? >> >> Rsync - initial release June, 1996 >> acls - apparently 1990s, but I can't find an exact date >> xattrs - apparently added to Linux in 2002 > > That theory doesn’t account for the fact that --archive also does not > preserve filesystem features dating from the 1970s. I never said it covered all the bases. I was specifically asking the possibility of things that came later. Since you brought up features from the 70s -- if one was to purposely disable them, either by a custom-compiled kernel, or otherwise not having the binaries installed; and then run a rsync process to try preserving them, will it run flawlessly? If it runs without fail, then fine, put them in '--archive'. If it fails, then putting them into '--archive' is counter-productive. >> [...] >> Therefore, the only way to ensure compatibility with "old" scripts using >> the '--archive' switch is to leave '--archive' alone. > > Yes, it’s too late now. A bit of thought up-front would have been a good > idea. > > Oh wait, I already said exactly that, but you ignored it. I didn't ignore your statement. I have the counter-position that one or more options you want to see included in "--archive" are undesirable in certain situations. That is, the whole point of the "--archive" option is nothing more than a decent baseline. -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlySVZ8ACgkQjhHd8xJ5 ooH3LAf9HBxnGquwlbXsCywE85qOKve3PYJFnWPVRfDLSHMticFpCp51aTVNYE4P tOEXIes68AgzYYSNGubBQhOcVi0LB8E8A1JWGVPayAwv+QJCPlatsbjGXu+mDRKK GFpMj8ZQcYMr9gxeEGUVnwI7ZQIFP92zZq/HjUoTJeznn/sn8nAESfUEptzKzQn6 OPTLMPqr94R5t8HcrxSlAnw+1vXV900E+VEdXtJ1AHbNFTdNLsn1IP0GRy17ITCO QrabDkrwfvIHN+MiANblwCkJkgIYKOvn1Jo9Fq1gMq9IbAdjyELu/4tJGFIRl5i0 q5epeVeikd2XqmLexdaV7ur8hOi+Vg== =nWmS -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-03-20 15:49 +0000 |
| Message-ID | <87pnqlsg0j.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #54519 |
Dan Purgert <dan@djph.net> writes: > Richard Kettlewell wrote: >> Dan Purgert <dan@djph.net> writes: >>>> --archive isn’t default behavior, though - it’s an alias for >>>> preserving “almost everything”. Frankly it’s a silly grouping of >>>> options: >>> >>> Or is it that, when "--archive" was introduced, there weren't as many >>> features -- acls and xattrs and whatever else makes a "sane default" >>> to you? >>> >>> Rsync - initial release June, 1996 >>> acls - apparently 1990s, but I can't find an exact date >>> xattrs - apparently added to Linux in 2002 >> >> That theory doesn’t account for the fact that --archive also does not >> preserve filesystem features dating from the 1970s. > > I never said it covered all the bases. I was specifically asking the > possibility of things that came later. > > Since you brought up features from the 70s -- if one was to purposely > disable them, either by a custom-compiled kernel, or otherwise not > having the binaries installed; and then run a rsync process to try > preserving them, will it run flawlessly? The feature I had in mind is hard links. If you have a filesystem which doesn’t support hard links then rsync just won’t see any files with a non-1 link count. It will work just fine. FAT filesystems are an example, there is no need to speculate about custom kernels. > If it runs without fail, then fine, put them in '--archive'. > > If it fails, then putting them into '--archive' is counter-productive. > >>> [...] >>> Therefore, the only way to ensure compatibility with "old" scripts using >>> the '--archive' switch is to leave '--archive' alone. >> >> Yes, it’s too late now. A bit of thought up-front would have been a good >> idea. >> >> Oh wait, I already said exactly that, but you ignored it. > > I didn't ignore your statement. I have the counter-position that one > or more options you want to see included in "--archive" are > undesirable in certain situations. That is, the whole point of the > "--archive" option is nothing more than a decent baseline. Well, you snipped it and repeated the sense of first half with a different wording, so from here your behavior wasn’t distinguishable from you ignoring it. Can you make a specific statement of what would actually go wrong if, hypothetically, --archive made exact backups rather than missing out a grab-bag of filesystem features? No a vague statement about something being ‘undesirable in certain circumstances’ but an exact description of what will go wrong, and why skipping that feature would have been a concrete improvement, in use case that at least one person has? -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Date | 2019-03-20 17:57 +0000 |
| Message-ID | <q6tuur$t7e$2@dont-email.me> |
| In reply to | #54523 |
On 2019-03-20, Richard Kettlewell <invalid@invalid.invalid> wrote: > Dan Purgert <dan@djph.net> writes: >> Richard Kettlewell wrote: >>> Dan Purgert <dan@djph.net> writes: >>>>> --archive isn’t default behavior, though - it’s an alias for >>>>> preserving “almost everything”. Frankly it’s a silly grouping of >>>>> options: >>>> >>>> Or is it that, when "--archive" was introduced, there weren't as many >>>> features -- acls and xattrs and whatever else makes a "sane default" >>>> to you? >>>> >>>> Rsync - initial release June, 1996 >>>> acls - apparently 1990s, but I can't find an exact date >>>> xattrs - apparently added to Linux in 2002 >>> >>> That theory doesn’t account for the fact that --archive also does not >>> preserve filesystem features dating from the 1970s. >> >> I never said it covered all the bases. I was specifically asking the >> possibility of things that came later. >> >> Since you brought up features from the 70s -- if one was to purposely >> disable them, either by a custom-compiled kernel, or otherwise not >> having the binaries installed; and then run a rsync process to try >> preserving them, will it run flawlessly? > > The feature I had in mind is hard links. If you have a filesystem which > doesn’t support hard links then rsync just won’t see any files with a > non-1 link count. It will work just fine. FAT filesystems are an > example, there is no need to speculate about custom kernels. Hard links is expensive. The developers of the file system which include hard links put no thought into it, and did not include in the description a list of the files which point at the same inode (to use your type of argument). As a result one has to search for all the files which point to that inode to make that list oneself. And besides, if the there is a file from outside the set of files being copied, the hard link has to be broken anyway. (Yes, I know there are reasons why the file list was not included in the inode, but to use your point of view, that simply means that the develpers never put any thought into it). So you want rsync to run at half speed, in order to preserve some of the hard links? Of are you willing to waste space by making separate copies of the files. Opinions can and obviously do differ on that question. > >> If it runs without fail, then fine, put them in '--archive'. >> >> If it fails, then putting them into '--archive' is counter-productive. >> >>>> [...] >>>> Therefore, the only way to ensure compatibility with "old" scripts using >>>> the '--archive' switch is to leave '--archive' alone. >>> >>> Yes, it’s too late now. A bit of thought up-front would have been a good >>> idea. >>> >>> Oh wait, I already said exactly that, but you ignored it. >> >> I didn't ignore your statement. I have the counter-position that one >> or more options you want to see included in "--archive" are >> undesirable in certain situations. That is, the whole point of the >> "--archive" option is nothing more than a decent baseline. > > Well, you snipped it and repeated the sense of first half with a > different wording, so from here your behavior wasn’t distinguishable > from you ignoring it. > > Can you make a specific statement of what would actually go wrong if, > hypothetically, --archive made exact backups rather than missing out a > grab-bag of filesystem features? No a vague statement about something > being ‘undesirable in certain circumstances’ but an exact description of > what will go wrong, and why skipping that feature would have been a > concrete improvement, in use case that at least one person has? > And you are someone who does not list his own position, but demands that others do? Hard links are time expensive as I mentioned. They are also dangerous in a backup as if one of the files gets corrupted all of the hard links do. Now, I personally would probably like hard links preserved, but I can see reasons not to do so. You apparently cannot.
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-03-20 23:39 +0000 |
| Message-ID | <87ef71ru8u.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #54527 |
William Unruh <unruh@invalid.ca> writes: > Hard links is expensive. The developers of the file system which > include hard links put no thought into it, and did not include in the > description a list of the files which point at the same inode (to use > your type of argument). As a result one has to search for all the > files which point to that inode to make that list oneself. And > besides, if the there is a file from outside the set of files being > copied, the hard link has to be broken anyway. (Yes, I know there are > reasons why the file list was not included in the inode, but to use > your point of view, that simply means that the develpers never put any > thought into it). > > So you want rsync to run at half speed, in order to preserve some of the > hard links? Of are you willing to waste space by making separate copies > of the files. Opinions can and obviously do differ on that question. Time complexity is proportional to the number of names with st_nlink > 1 and memory complexity is proportional to the number of inodes with st_nlink > 1 (in both cases excluding directories). Normally the trivial extra cost would be lost in the noise compared to IO delay. -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Date | 2019-03-21 08:15 +0000 |
| Message-ID | <q6vh64$m40$2@gonzo.revmaps.no-ip.org> |
| In reply to | #54523 |
On 2019-03-20, Richard Kettlewell <invalid@invalid.invalid> wrote: > > Can you make a specific statement of what would actually go wrong if, > hypothetically, --archive made exact backups rather than missing out a > grab-bag of filesystem features? No a vague statement about something > being ‘undesirable in certain circumstances’ but an exact description of > what will go wrong, and why skipping that feature would have been a > concrete improvement, in use case that at least one person has? After that change, in cases where the user uses --archive and does not want xattrs copied they would be copied. do you need me to reference the dictionary entry for "undesirable"? -- When I tried casting out nines I made a hash of it.
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Date | 2019-03-21 09:00 +0000 |
| Message-ID | <875zscsiu3.fsf@LkoBDZeT.terraraq.uk> |
| In reply to | #54530 |
Jasen Betts <jasen@xnet.co.nz> writes: > Richard Kettlewell <invalid@invalid.invalid> wrote: >> Can you make a specific statement of what would actually go wrong if, >> hypothetically, --archive made exact backups rather than missing out >> a grab-bag of filesystem features? No a vague statement about >> something being ‘undesirable in certain circumstances’ but an exact >> description of what will go wrong, and why skipping that feature >> would have been a concrete improvement, in use case that at least one >> person has? > > After that change, in cases where the user uses --archive and does not > want xattrs copied they would be copied. do you need me to reference > the dictionary entry for "undesirable"? Who is the (at least) one person who has the use case of copying everything except extended attributes, ACLs and hard links? Why is that their requirement? I’m increasingly convinced that if the --archive option set had, hypothetically, been smaller or larger, the peanut gallery here would be arguing just as vigorously that it was exactly right as it was. Nobody is able to say what’s so terrible about copying extended attributes or ACLs. William’s claim that copying hard links would be a massive performance drain is absurd to anyone who has given the question a moment’s thought. There’s no real analysis going on here, just instinctive conservatism. -- https://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-03-21 13:11 +0000 |
| Message-ID | <q702id$ofd$1@news.xmission.com> |
| In reply to | #54532 |
In article <875zscsiu3.fsf@LkoBDZeT.terraraq.uk>, Richard Kettlewell <invalid@invalid.invalid> wrote: ... >Who is the (at least) one person who has the use case of copying >everything except extended attributes, ACLs and hard links? Why is that >their requirement? Quite so. But that is the Unix way - and yes, I'm as big a fan of Unix as you'll find, but I am aware of its faults - to give the "user" every possible option (and very possible combination of options), even though only a small subset of those option combinations is actually useful. Because America. And because freedom. >I'm increasingly convinced that if the --archive option set had, >hypothetically, been smaller or larger, the peanut gallery here would be >arguing just as vigorously that it was exactly right as it was. Nobody >is able to say what's so terrible about copying extended attributes or >ACLs. William's claim that copying hard links would be a massive >performance drain is absurd to anyone who has given the question a >moment's thought. There's no real analysis going on here, just >instinctive conservatism. Yup. Cognitive dissonance, my friend. Specifically, the avoidance of it. That's what drives "conservatives" of any and all stripes. The inability to see and acknowledge the faults in the things they love. (cough, cough, DJT, cough, cough). -- Men rarely (if ever) manage to dream up a God superior to themselves. Most Gods have the manners and morals of a spoiled child.
[toc] | [prev] | [next] | [standalone]
Page 3 of 5 — ← Prev page 1 2 [3] 4 5 Next page →
Back to top | Article view | alt.os.linux
csiph-web