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


Groups > alt.os.linux > #54535

rsync --archive

From Ivan Shmakov <ivan@siamics.net>
Newsgroups alt.os.linux
Subject rsync --archive
Date 2019-03-21 18:10 +0000
Organization Aioe.org NNTP Server
Message-ID <87pnqkw12h.fsf_-_@violet.siamics.net> (permalink)
References (8 earlier) <87va0dsl49.fsf@LkoBDZeT.terraraq.uk> <slrnq94ld1.n0k.dan@djph.net> <87pnqlsg0j.fsf@LkoBDZeT.terraraq.uk> <q6vh64$m40$2@gonzo.revmaps.no-ip.org> <875zscsiu3.fsf@LkoBDZeT.terraraq.uk>

Show all headers | View raw


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

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web