Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #54449 > unrolled thread

Remote backups with rsync - discussion / tutorial, I guess.

Started byDan Purgert <dan@djph.net>
First post2019-03-15 18:19 +0000
Last post2019-03-20 12:53 +0100
Articles 20 on this page of 100 — 16 participants

Back to article view | Back to alt.os.linux


Contents

  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 4 of 5 — ← Prev page 1 2 3 [4] 5  Next page →


#54534

FromDan Purgert <dan@djph.net>
Date2019-03-21 14:03 +0000
Message-ID<slrnq976dl.n0k.dan@djph.net>
In reply to#54532
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Richard Kettlewell wrote:
> 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 don't copy everything "except" those; but as it stands '--archive' is
perfectly fine for my usecases.

>
> 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. 

If it had more, it would have more.

If it had less, I would minimally have "-rtlopg".  Incidentally, that's
what I was doing in some of my earliest backup scripts, because rather
than reading a long manpage, I searched it for specific words (user,
group, recursive, etc.).  

And when I finally sat down to clean some things up (a long time back,
just not as long as "learn rsync"), lo and behold '-a' / '--archive'
does all those things (and -D, as well).  Still kept around my -v and -P
options though.

Is it the BEST backup command?  probably not.
Does it work for my needs? absolutely.

> Nobody is able to say what’s so terrible about copying extended
> attributes or ACLs.  

I've said at least once that given the options haven't been added to
'--archive', there is quite possibly some outside influence requiring
that it not be part of said "easy" switch.  

Given that your responses brushed it off as theorycrafting, well I did a
quick google search, and it shows the -X option was added in 2.6.8
(2006-04-22). There are also indications that the option could cause
problems with prior versions that didn't support -X, including crashes
of the rsync process on one or both ends.  

Now, I'm hardly an expert, but from where I sit, it reads a lot like a
conscious decision to keep that out of "--archive" in order to not break
things for people.


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlyTmbMACgkQjhHd8xJ5
ooFuGwf/QfAsjs23y7HGLtsBT0IkvakapjxurRN6l/4fAUHWT/rSrGhjVf9IQO36
4gn+Ggg7cSpm6/6wlJJGDcZdIBETW1fZzuHbY+aG3D6fZdcmLXKBkAWzI9yLVw8B
gbBHSKWUrB4Ro4tMhbVHMxJCk6DcRjyBM130ZZh8urxivnSj+M6cmHcx5bKdyM79
H5EFYuSQ5jayybaCcsTHb3vW32XJLfiovSaHEheXMLJIFAt2cNTs3w5tIJr2yXIS
kwD+zpMQ3pC4TjlalEu90sl1HDCVB5WRB/msz0emvGzwq8mayWQxqLFOJmN0J2/B
thxvaSQKXNv03ANRO01U3VnEKO7IKw==
=emA+
-----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]


#54535 — rsync --archive

FromIvan Shmakov <ivan@siamics.net>
Date2019-03-21 18:10 +0000
Subjectrsync --archive
Message-ID<87pnqkw12h.fsf_-_@violet.siamics.net>
In reply to#54532
>>>>> Richard Kettlewell <invalid@invalid.invalid> writes:
>>>>> Jasen Betts <jasen@xnet.co.nz> writes:

[...]

 >> 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?

	See below.

 > 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.

	I’m inclined to agree.  I’m not going to blame some lack of
	understanding on the part of either developers or users, though.
	Rather, I see it as reflective of wide variety of use cases
	Rsync, much like cp, has.  For instance, would the timestamp
	preservation (already mentioned in this thread) make much sense
	for $ cp lostware.blob /dev/lp0 or $ cp /dev/zero /dev/sdx37?
	(FTR: I know about shred(1) and blkdiscard(8), thank you.)

	Of course, I also lament a certain shortcoming of -a; namely,
	the lack of -O in there.  Then again, I most commonly just use
	$ rsync -rlOt (or -rlOtH), not -a.

 > Nobody is able to say what’s so terrible about copying extended
 > attributes or ACLs.

	Regarding ACLs, please consider, say:

$ rsync -a -- rsync://example.com/llamas/potd /var/www/llamas-mirror/ 

	Now, while I may put reasonable trust on example.com admin when
	it comes to what files they select for the archive I mirror,
	and that timestamps there aren’t utterly meaningless; and while
	I also follow debian-security@ and hence am more or less confident
	that viewing a crafted .jpeg won’t get me pwned; I’m not at all
	sure I should entrust the remote party with the power to set
	ACLs on files for this section of my Web site.  In the best
	case, it would be meaningless; in the worst, a mismatch in the
	uids (usernames?) may result in some random user of my server
	ruining my llama pictures mirror by accident.

	To the best of my knowledge, none of the software I employ makes
	any use of xattrs, making that point rather moot for me.  Still,
	trying to copy something that isn’t here and is not going to be
	used there doesn’t sound all that sensible.

 > 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.

	I find it obvious that there /will/ be some performance penalty
	for preserving “hardlinks” (-H), as that requires Rsync to
	maintain an otherwise unneeded (device, inode) → filename
	mapping.  Whether or not that’s going to be marginal on current
	hardware is something I haven’t found much value in finding out
	for sure.  The real question is, however: was said penalty
	negligible on the hardware in use back when the options (-a, -H)
	were introduced?

	Another question (which, thankfully, is easy to find an answer to)
	is what’d be the consequences of trying to use Rsync -H with
	destination being on filesystem that has no support for
	hardlinks (such as FAT)?  And similarly for ACLs and xattrs.

 > There’s no real analysis going on here, just instinctive conservatism.

	We’re all volunteers here.  If you want there to be analysis –
	you’re free to write one.

-- 
FSF associate member #7257  http://am-1.org/~ivan/

[toc] | [prev] | [next] | [standalone]


#54539 — Re: rsync --archive

FromRichard Kettlewell <invalid@invalid.invalid>
Date2019-03-21 21:42 +0000
SubjectRe: rsync --archive
Message-ID<87r2azrjjh.fsf@LkoBDZeT.terraraq.uk>
In reply to#54535
Ivan Shmakov <ivan@siamics.net> writes:
> Regarding ACLs, please consider, say:
>
> $ rsync -a -- rsync://example.com/llamas/potd /var/www/llamas-mirror/ 
>
> Now, while I may put reasonable trust on example.com admin when it
> comes to what files they select for the archive I mirror, and that
> timestamps there aren’t utterly meaningless; and while I also follow
> debian-security@ and hence am more or less confident that viewing a
> crafted .jpeg won’t get me pwned; I’m not at all sure I should entrust
> the remote party with the power to set ACLs on files for this section
> of my Web site.  In the best case, it would be meaningless; in the
> worst, a mismatch in the uids (usernames?) may result in some random
> user of my server ruining my llama pictures mirror by accident.

Your command above already entrusts them with comparable power via the
traditional unix permissions system. Adding ACLs isn’t going to make the
situation materially worse.

>> 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.
>
> I find it obvious that there /will/ be some performance penalty for
> preserving “hardlinks” (-H), as that requires Rsync to maintain an
> otherwise unneeded (device, inode) → filename mapping.  Whether or not
> that’s going to be marginal on current hardware is something I haven’t
> found much value in finding out for sure.

Of course it is. In fact there’s another detail: the moment a program
makes a link instead of doing a copy, it’s saved on IO in proportion to
the size of the file. The average cost of --hard-links is likely to be
negative.

> The real question is, however: was said penalty negligible on the
> hardware in use back when the options (-a, -H) were introduced?

I’m not going to dust off a mid-1990s computer to do the experiment, but
the answer is probably yes; trading computation for IO was a net win in
the mid 1990s. For example, compressed man pages were noticeably faster
than uncompressed (I did the experiment).

> Another question (which, thankfully, is easy to find an answer to) is
> what’d be the consequences of trying to use Rsync -H with destination
> being on filesystem that has no support for hardlinks (such as FAT)?
> And similarly for ACLs and xattrs.

And similarly for permissions, groups, owners, symlinks, devices and
timestamps; the existence of filesystems which either lack these
features or implement them poorly is evidently no obstacle to including
them in --archive.

-- 
https://www.greenend.org.uk/rjk/

[toc] | [prev] | [next] | [standalone]


#54554 — Re: rsync --archive

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-03-22 19:54 +0100
SubjectRe: rsync --archive
Message-ID<qknfmf-oe7.ln1@Telcontar.valinor>
In reply to#54539
On 21/03/2019 22.42, Richard Kettlewell wrote:
> Ivan Shmakov <ivan@siamics.net> writes:
>> Regarding ACLs, please consider, say:
>>
>> $ rsync -a -- rsync://example.com/llamas/potd /var/www/llamas-mirror/ 
>>
>> Now, while I may put reasonable trust on example.com admin when it
>> comes to what files they select for the archive I mirror, and that
>> timestamps there aren’t utterly meaningless; and while I also follow
>> debian-security@ and hence am more or less confident that viewing a
>> crafted .jpeg won’t get me pwned; I’m not at all sure I should entrust
>> the remote party with the power to set ACLs on files for this section
>> of my Web site.  In the best case, it would be meaningless; in the
>> worst, a mismatch in the uids (usernames?) may result in some random
>> user of my server ruining my llama pictures mirror by accident.
> 
> Your command above already entrusts them with comparable power via the
> traditional unix permissions system. Adding ACLs isn’t going to make the
> situation materially worse.

Well, a listing doesn't show them. They are "hidden".

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#54561 — Re: rsync --archive

FromIvan Shmakov <ivan@miko.siamics.net>
Date2019-03-23 04:32 +0000
SubjectRe: rsync --archive
Message-ID<87o962fbwq.fsf@miko.siamics.net>
In reply to#54539
>>>>> Richard Kettlewell <invalid@invalid.invalid> writes:
>>>>> Ivan Shmakov <ivan@siamics.net> writes:

 >> Regarding ACLs, please consider, say:

 >> $ rsync -a -- rsync://example.com/llamas/potd /var/www/llamas-mirror/ 

 >> Now, while I may put reasonable trust on example.com admin when it
 >> comes to what files they select for the archive I mirror, and that
 >> timestamps there aren’t utterly meaningless; and while I also follow
 >> debian-security@ and hence am more or less confident that viewing a
 >> crafted .jpeg won’t get me pwned; I’m not at all sure I should
 >> entrust the remote party with the power to set ACLs on files for
 >> this section of my Web site.  In the best case, it would be
 >> meaningless; in the worst, a mismatch in the uids (usernames?) may
 >> result in some random user of my server ruining my llama pictures
 >> mirror by accident.

 > Your command above already entrusts them with comparable power via
 > the traditional unix permissions system.  Adding ACLs isn’t going to
 > make the situation materially worse.

	I stand corrected.  As it seems, my general tendency to avoid -a
	(in favor of explicit -rlOt -H -pog as needed) is rather justified.

	That said, Unix permissions are older, more familiar to users
	and admins alike, as well as more visible in ls(1) output.

[…]

 >> The real question is, however: was said penalty negligible on the
 >> hardware in use back when the options (-a, -H) were introduced?

 > I’m not going to dust off a mid-1990s computer to do the experiment,
 > but the answer is probably yes; trading computation for IO was a net
 > win in the mid 1990s.

	Except that when you run out of RAM, your computation /becomes/ IO.

	I don’t remember what exact amount of memory my first GNU/Linux
	box had back about two decades ago (give or take a few months),
	but I distinctly recall that 32 MiB sounded like a plenty of RAM
	back then.

 > For example, compressed man pages were noticeably faster than
 > uncompressed (I did the experiment).

	Indeed, that’s something I do remember as well.

 >> Another question (which, thankfully, is easy to find an answer to)
 >> is what’d be the consequences of trying to use Rsync -H with
 >> destination being on filesystem that has no support for hardlinks
 >> (such as FAT)?  And similarly for ACLs and xattrs.

 > And similarly for permissions, groups, owners, symlinks, devices and
 > timestamps; the existence of filesystems which either lack these
 > features or implement them poorly is evidently no obstacle to
 > including them in --archive.

	Not quite; while, AFAIK, the support for multiple names per
	inode dates back to the earliest of Unix filesystems, ACLs and
	xattrs most certainly do not.  Hence, the chances to get bitten
	by compatibility issues are higher with the latter.

-- 
FSF associate member #7257  http://taiga-experiment.info/

[toc] | [prev] | [next] | [standalone]


#54537

FromWilliam Unruh <unruh@invalid.ca>
Date2019-03-21 18:54 +0000
Message-ID<q70mlr$cb9$2@dont-email.me>
In reply to#54532
On 2019-03-21, Richard Kettlewell <invalid@invalid.invalid> wrote:
> 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.

I was not defending the ommission of hard links from -a but trying to
come up with a rational why it was not included. I really do not care
whether it is there or not since I do not use hard links in my system. 

My contention is that -a is the closest to "default" and one can always
argue and people will argue, that the writers idea of "default" does not
match theirs, and will usually come up with good arguments. Do you
really believe that the default in cp is "just right" and should not be
changed? Do you believe that about ANY program?

All I am saying is that rsync does have a default which is pretty good,
and that anything now is nitpicking. 

>

[toc] | [prev] | [next] | [standalone]


#54545

FromJasen Betts <jasen@xnet.co.nz>
Date2019-03-22 10:03 +0000
Message-ID<q72bti$kbp$3@gonzo.revmaps.no-ip.org>
In reply to#54532
On 2019-03-21, Richard Kettlewell <invalid@invalid.invalid> wrote:
> 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?

Do you have proof that there is no such person?

You seem to be aguing for software that behaves unpredictably.  No-one
can predict what new features might be enabled by a new version before
that version is written.  I would much prefer my backup scripts continue 
to do the same thing, (possilby with fewer bugs,) when  I upgrade rsync,
instead of it getting a new personality.

> 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. 

I'm not arguing that it was ever "exactly right".

> There’s no real analysis going on here, just
> instinctive conservatism.

That's eactly right, and that's how it should be, sameness is good in
non-interactive processes.

you seem to be arguing for a --try-to-clone-everything switch that tries
to copy all the metadata that this vesion of rsync can find and silently
drops any metadata that it can't copy, that seems kind of risky to me
stuff could break and you'd never know. But you could try suggesting it to
the maker.

-- 
  When I tried casting out nines I made a hash of it.

[toc] | [prev] | [next] | [standalone]


#54536

FromWilliam Unruh <unruh@invalid.ca>
Date2019-03-21 18:50 +0000
Message-ID<q70mdr$cb9$1@dont-email.me>
In reply to#54530
On 2019-03-21, Jasen Betts <jasen@xnet.co.nz> wrote:
> 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"?

You would then need to include a negative flag with cancelled that
option, increasing the number of flags that people already complain
about. 
>

[toc] | [prev] | [next] | [standalone]


#54538

FromRichard Kettlewell <invalid@invalid.invalid>
Date2019-03-21 21:31 +0000
Message-ID<87wokrrk22.fsf@LkoBDZeT.terraraq.uk>
In reply to#54536
William Unruh <unruh@invalid.ca> writes:
> On 2019-03-21, Jasen Betts <jasen@xnet.co.nz> wrote:
>> 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"?
>
> You would then need to include a negative flag with cancelled that
> option, increasing the number of flags that people already complain
> about. 

No, you wouldn’t need to do that, any more than anyone needs to include
inverses of -r, -l, -p, -t, -g, -o or -D. Don’t be absurd.

-- 
https://www.greenend.org.uk/rjk/

[toc] | [prev] | [next] | [standalone]


#54553

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-03-22 19:48 +0100
Message-ID<i8nfmf-oe7.ln1@Telcontar.valinor>
In reply to#54523
On 20/03/2019 16.49, Richard Kettlewell 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.

Well, I think it simply can not copy hardlinks, and there aren't any. No
problem. The problem would be if the source is a linux filesystem and
destination a fat filesystem, but that would not be the only problem.
Timestamps is another.

At worst, it will spit errors. The documentation I think talks about this.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#54521

FromWilliam Unruh <unruh@invalid.ca>
Date2019-03-20 15:07 +0000
Message-ID<q6tkvb$qos$3@dont-email.me>
In reply to#54517
On 2019-03-20, Richard Kettlewell <invalid@invalid.invalid> wrote:
> Dan Purgert <dan@djph.net> writes:
...
>
>> 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.

As it should have been, There was a lot of thought that went into rsync,
obviously not what you would have chosen to think about. Now exactly
WHAT would you have changed had you been there to give it a bit of
thought up front? Without that your statement is simply a slur on the
originators which I would regard as unfair.. 

>

[toc] | [prev] | [next] | [standalone]


#54518

FromWilliam Unruh <unruh@invalid.ca>
Date2019-03-20 14:57 +0000
Message-ID<q6tkcl$qos$1@dont-email.me>
In reply to#54506
On 2019-03-20, Richard Kettlewell <invalid@invalid.invalid> 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:
> preserving everything would be a sensible grouping (it would guarantee
> nobody will be surprised by an inaccurate archive), the ability to pick
> and choose every individual thing to preserve is also perfectly sensible
> (it maximizes the number of use cases supported).  But the
> somewhere-inbetween model of --archive is just a trap for the unwary.

it is the closest to default behaviour that rsync has. That you disagree
with what should be in the default is not at all surprizing. Any default
will have its detractors. If you simply run rsync without any options,
it does nothing since the decision was made that flags switch stuff on,
not off. -a will make a backup that works for many cases. 
>
>> I may not like the defaults, but that doesn't change the fact that it
>> is a very useful program.
>
> AFAICS nobody is saying it isn’t useful, so I don’t know what the
> purpose of that remark is.

Yes, the argument is about rsync having far to many obscure options and
that if you are going to use rsync, you have to learn and switch on a
bunch of arcane and very forgetable options, and that makes rsync
unuseable. -a makes it very useable in most cases, and makes it an
emminantly suitable replacement ofr say cp which also checks the
intergrity of the copy. Most copies do not preserve hard links either. 

>
>> 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.

What kind or thought. They decided to let the user choose the options to
switch on. Had they chosen to switch on some set by default, theywould
then have had to double the number of flags so you could also switch off
options
>

[toc] | [prev] | [next] | [standalone]


#54524

FromRichard Kettlewell <invalid@invalid.invalid>
Date2019-03-20 15:54 +0000
Message-ID<87k1gtsfrs.fsf@LkoBDZeT.terraraq.uk>
In reply to#54518
William Unruh <unruh@invalid.ca> writes:
> it is the closest to default behaviour that rsync has. That you disagree
> with what should be in the default is not at all surprizing. Any default
> will have its detractors. If you simply run rsync without any options,
> it does nothing since the decision was made that flags switch stuff on,
> not off. -a will make a backup that works for many cases. 

My argument is that it could easily have been designed to make a backup
that works in even more cases. What, specifically, would be wrong with
that?

> Yes, the argument is about rsync having far to many obscure options and
> that if you are going to use rsync, you have to learn and switch on a
> bunch of arcane and very forgetable options, and that makes rsync
> unuseable. -a makes it very useable in most cases, and makes it an
> emminantly suitable replacement ofr say cp which also checks the
> intergrity of the copy. Most copies do not preserve hard links either. 

cp -a includes a bunch of stuff that rsync -a omits. Just saying.

>>> 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.
>
> What kind or thought. They decided to let the user choose the options to
> switch on. Had they chosen to switch on some set by default, theywould
> then have had to double the number of flags so you could also switch off
> options

A (hypothetically) different behavior for --archive is not the same
thing as different defaults.

-- 
https://www.greenend.org.uk/rjk/

[toc] | [prev] | [next] | [standalone]


#54526

FromWilliam Unruh <unruh@invalid.ca>
Date2019-03-20 17:49 +0000
Message-ID<q6tufd$t7e$1@dont-email.me>
In reply to#54524
On 2019-03-20, Richard Kettlewell <invalid@invalid.invalid> wrote:
> William Unruh <unruh@invalid.ca> writes:
>> it is the closest to default behaviour that rsync has. That you disagree
>> with what should be in the default is not at all surprizing. Any default
>> will have its detractors. If you simply run rsync without any options,
>> it does nothing since the decision was made that flags switch stuff on,
>> not off. -a will make a backup that works for many cases. 
>
> My argument is that it could easily have been designed to make a backup
> that works in even more cases. What, specifically, would be wrong with
> that?

Nothing. But at this point it is degenerating into nitpicking as to
exactly what the "default" should include. And opinions will vary on
that. The question is whether or not the "default" covers the cases that
many/most people will want. Since most people do not even know what an
extended attribute is, and do not use them, I would suspect that they
would be happy with rsync -a. If they know about them, they are probably
knowledgeable enough to be able to figure out how to get rsync to save
them. 

>
>> Yes, the argument is about rsync having far to many obscure options and
>> that if you are going to use rsync, you have to learn and switch on a
>> bunch of arcane and very forgetable options, and that makes rsync
>> unuseable. -a makes it very useable in most cases, and makes it an
>> emminantly suitable replacement ofr say cp which also checks the
>> intergrity of the copy. Most copies do not preserve hard links either. 
>
> cp -a includes a bunch of stuff that rsync -a omits. Just saying.

So?

>
>>>> 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.
>>
>> What kind or thought. They decided to let the user choose the options to
>> switch on. Had they chosen to switch on some set by default, theywould
>> then have had to double the number of flags so you could also switch off
>> options
>
> A (hypothetically) different behavior for --archive is not the same
> thing as different defaults.

The default for rsync is to do nothing, so -a is the  closest to a
default it has. The design philosphy was to have the flags turn on
options, instead of having flags both for turning on and off options (
which would have made for even more of a "mess").

I simply abject to the position you seem to take that rsync is as it is
because noone put any thought into it. I would say it is as it is
because they DID put thought into it, and came up with a slightly
different model than the one you would have come up with. But since I do
not believe you are God, or even the pope--infallible-- I am willing to
grant that that they did put thought into it, and produced something
that was different than what you would have put into it, but equally (or
probably more) useable than you would have produced.


>

[toc] | [prev] | [next] | [standalone]


#54531

FromJasen Betts <jasen@xnet.co.nz>
Date2019-03-21 08:21 +0000
Message-ID<q6vhip$m40$3@gonzo.revmaps.no-ip.org>
In reply to#54526
On 2019-03-20, William Unruh <unruh@invalid.ca> wrote:
>
> The default for rsync is to do nothing, so -a is the  closest to a
> default it has. The design philosphy was to have the flags turn on
> options, instead of having flags both for turning on and off options (
> which would have made for even more of a "mess").

Nah, the default is to behave something like cp.

-- 
  When I tried casting out nines I made a hash of it.

[toc] | [prev] | [next] | [standalone]


#54500

FromJasen Betts <jasen@xnet.co.nz>
Date2019-03-19 20:50 +0000
Message-ID<q6rkm8$adi$1@gonzo.revmaps.no-ip.org>
In reply to#54494
On 2019-03-19, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> In article <h4v6mf-ee5.ln1@Telcontar.valinor>,
> 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".

yeeh it has that problem of beeing too good for you.

what I mean is that is shows the scars of being improved many times.
after each feature is added a new switch is needed to enable it else
you end up breaking existing uses

I usually use -vaxHAX  it's easy to remeber and seems to cover
everything I want for a backup.

in scripts I use the long form options

 RSYNC_OPTS=(
    --recursive  
    --links           
    --one-file-system # comments here if needed
    # etc ...
    )

 RSYNC "${RSYNC_OPTS[@]}" #...
 
> 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.

I'm not saying that rsync is perfect, I'm saying that it is what it is.
Changing it would make it different, than would make it changeable,
and therefore untrustworthy, and for backups you want trustworthy tools.

-- 
  When I tried casting out nines I made a hash of it.

[toc] | [prev] | [next] | [standalone]


#54504

FromWilliam Unruh <unruh@invalid.ca>
Date2019-03-20 02:40 +0000
Message-ID<q6s979$1v0$2@dont-email.me>
In reply to#54494
On 2019-03-19, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> In article <h4v6mf-ee5.ln1@Telcontar.valinor>,
> 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".

No you don't need them. It is a reasonable default. Yes, rsync allows
loads of flags. So what? As you admitted so does the dos or your
favourite. You wanted some reasonable defaults. -a gives those to you. 

>
> (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.

Just use rsync -a and you can quit worrying-- you will have your
reasonable defaults. 
>

[toc] | [prev] | [next] | [standalone]


#54505

Fromgazelle@shell.xmission.com (Kenny McCormack)
Date2019-03-20 08:19 +0000
Message-ID<q6st1r$1b5$1@news.xmission.com>
In reply to#54504
In article <q6s979$1v0$2@dont-email.me>,
William Unruh  <unruh@invalid.ca> wrote:
...
>No you don't need them. It is a reasonable default. Yes, rsync allows
>loads of flags. So what? As you admitted so does the dos or your
>favourite. You wanted some reasonable defaults. -a gives those to you. 

I understand why you are saying these things.

You might want to look up the term "cognitive dissonance".

-- 
(Cruz certainly has an odd face) ... it looks like someone sewed pieces of a
waterlogged Reagan mask together at gunpoint ...

http://www.rollingstone.com/politics/news/how-america-made-donald-trump-unstoppable-20160224

[toc] | [prev] | [next] | [standalone]


#54503

FromWilliam Unruh <unruh@invalid.ca>
Date2019-03-20 02:37 +0000
Message-ID<q6s91d$1v0$1@dont-email.me>
In reply to#54490
On 2019-03-19, Carlos E.R. <robin_listas@es.invalid> wrote:
> On 19/03/2019 01.29, William Unruh wrote:
>> On 2019-03-18, Adrian Caspersz <email@here.invalid> wrote:
>>> On 18/03/2019 12:29, Java Jive wrote:
>>>
>>>> The point you make is valid, the defaults aren't very sensible.  The way 
>>>> I get over that is to create an environment variable on every Linux 
>>>> machine that I have:
>>>>      RSYNC_OPTS='-Drltuogpv'
>>>
>>> If it helps, you could rearrange the letters
>>>
>>> '-Dltvgroup' might be more memorable?
>> 
>> Or just -avu
>> but v is only worthwhile at the console, not in a script, when 
>> -aqu might be more useful
>> 
>> (from man rsync
>> -a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)
>
> --archive does not include everything needed: Sparse, hard links,
> attributes, acls...

Neither did his.
Some people do not use acls, hardlinks, attributes. Sparse is probably
useful, but he did not have it. 

I was just pointing out that he did not have to use that huge trail of
flags.

-a is as close as rsync comes to having a reasonable set of defaults.

>
>
>

[toc] | [prev] | [next] | [standalone]


#54498

FromJasen Betts <jasen@xnet.co.nz>
Date2019-03-19 19:53 +0000
Message-ID<q6rhcf$85m$1@gonzo.revmaps.no-ip.org>
In reply to#54469
On 2019-03-18, Java Jive <java@evij.com.invalid> wrote:


>> For one just example, but probably the clearest: The fact that none of the
>> Unix "copy" commands default to preserving file access time/date.  cp, scp,
>> rsync, etc - that all require you to specify an option (usually something
>> like "-p") to do this obvious and always-the-right-thing thing.  This is
>> one thing that DOS/Windows got right - right from the start.
>
> Well, not really, as anyone who ever tried to copy a binary file without 
> remembering to use the /B switch will tell you.  The default mode of 
> COPY was ASCII or text mode, as if the /A switch had been specified, so 
> if the binary file happened to contain a byte value 0x1A  -  <ctrl-Z>, 
> commonly used as to mark the end of a text file  -  the copy would be 
> truncated at that point.  I've been caught out by this comparatively 
> recently, copying an audio file using a command prompt in W7.

Untrue. /B is only needed if you are concatenating binary files.

-- 
  When I tried casting out nines I made a hash of it.

[toc] | [prev] | [next] | [standalone]


Page 4 of 5 — ← Prev page 1 2 3 [4] 5  Next page →

Back to top | Article view | alt.os.linux


csiph-web