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


Groups > linux.debian.user > #202621

Re: how to backup to an encrypted usb drive? [OT: rsync metadata]

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: how to backup to an encrypted usb drive? [OT: rsync metadata]
Date 2018-11-19 20:00 +0100
Message-ID <wVWW6-6sm-5@gated-at.bofh.it> (permalink)
References (4 earlier) <wU7Ci-ey-7@gated-at.bofh.it> <wU85j-Fa-3@gated-at.bofh.it> <wVBoC-6n-9@gated-at.bofh.it> <wVIzL-4RT-1@gated-at.bofh.it> <wVW02-5PJ-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Nov 19, 2018 at 09:50:12AM -0800, Rick Thomas wrote:
> 
> 
> > On Nov 18, 2018, at 7:31 PM, Reco <recoverym4n@enotuniq.net> wrote:
> > 
> > On Sun, Nov 18, 2018 at 11:56:27AM -0800, Rick Thomas wrote:
> >> 
> >>>> On 11/14/18, Reco <recoverym4n@enotuniq.net> wrote:
> >>>>> If you're content with losing all this metadata in your backup - there
> >>>>> are rsync, cpio or tar. Or all those ‘backup solutions' based on those.
> >> 
> >>>> On Wed, Nov 14, 2018 at 12:52:57PM -0500, Lee wrote:
> >>>> Do I need all that metadata?  This is for me at home so it's pretty
> >>>> much a single user machine.
> >> 
> >>> On Nov 14, 2018, at 10:26 AM, Reco <recoverym4n@enotuniq.net> wrote:
> >>> That's for you to decide. I'd say you definitely need it for the backups
> >>> of / and /var and can *probably* skip it for /home, but YMMV.
> >> 
> >> Don’t the options for rsync -aAHX preserve all the metadata?  Is there something besides
> > 
> > Yep, there is at least one thing rsync looses along the way:
> > 
> > # chattr +i /bin/ping
> > # rsync -aHAX /bin/ping /tmp
> > # lsattr /bin/ping
> > ----i--------e--- /bin/ping
> > # lsattr /tmp/ping
> > -------------e--- /tmp/ping
> 
> Fascinating…
> 1) Are there any other extended attributes that are not copied by
> rsync? Or is there something special about “immutable”.

Rsync should ignore any extended attribute listed at chattr(1) save for
'e'.


> 2) Is this a bug or a feature?

Rather a lack of implementation. Some may consider it a bug, but rsync
behaved like this for may years - see [1], for example.


> Should there be a bg report filed on this phenomenon?

Probably. The question is - who's going to write a patch that implements
such feature?


> If not, should it be documented in the rsync(1) man page?  Does that need a bug report?

Yes, definitely. But then again, chattr(1) is it's filesystem-specific.
In Debian it's customary to document cornercases in README.Debian, not in manpage.

Reco

[1] https://lists.samba.org/archive/rsync/2011-February/026039.html

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: how to backup to an encrypted usb drive? Reco <recoverym4n@enotuniq.net> - 2018-11-14 16:10 +0100
  Re: how to backup to an encrypted usb drive? Lee <ler762@gmail.com> - 2018-11-14 17:00 +0100
    Re: how to backup to an encrypted usb drive? Reco <recoverym4n@enotuniq.net> - 2018-11-14 17:40 +0100
      Re: how to backup to an encrypted usb drive? Lee <ler762@gmail.com> - 2018-11-14 19:00 +0100
        Re: how to backup to an encrypted usb drive? Reco <recoverym4n@enotuniq.net> - 2018-11-14 19:30 +0100
          Re: how to backup to an encrypted usb drive? Lee <ler762@gmail.com> - 2018-11-14 23:10 +0100
            Re: how to backup to an encrypted usb drive? Reco <recoverym4n@enotuniq.net> - 2018-11-15 06:10 +0100
              Re: how to backup to an encrypted usb drive? Lee <ler762@gmail.com> - 2018-11-15 16:50 +0100
                Re: how to backup to an encrypted usb drive? Reco <recoverym4n@enotuniq.net> - 2018-11-15 18:20 +0100
                Re: how to backup to an encrypted usb drive? Lee <ler762@gmail.com> - 2018-11-15 20:10 +0100
                Re: how to backup to an encrypted usb drive? Reco <recoverym4n@enotuniq.net> - 2018-11-15 20:30 +0100
                Re: how to backup to an encrypted usb drive? Lee <ler762@gmail.com> - 2018-11-15 21:20 +0100
              Re: how to backup to an encrypted usb drive? Celejar <celejar@gmail.com> - 2018-11-15 18:50 +0100
          Re: how to backup to an encrypted usb drive? Richard Hector <richard@walnut.gen.nz> - 2018-11-15 01:20 +0100
            Re: how to backup to an encrypted usb drive? Reco <recoverym4n@enotuniq.net> - 2018-11-15 06:20 +0100
              Re: how to backup to an encrypted usb drive? Richard Hector <richard@walnut.gen.nz> - 2018-11-15 09:30 +0100
          Re: how to backup to an encrypted usb drive? [OT: rsync metadata] Rick Thomas <rbthomas@pobox.com> - 2018-11-18 21:00 +0100
            Re: how to backup to an encrypted usb drive? [OT: rsync metadata] Reco <recoverym4n@enotuniq.net> - 2018-11-19 04:40 +0100
              Re: how to backup to an encrypted usb drive? [OT: rsync metadata] Rick Thomas <rbthomas@pobox.com> - 2018-11-19 19:00 +0100
                Re: how to backup to an encrypted usb drive? [OT: rsync metadata] Reco <recoverym4n@enotuniq.net> - 2018-11-19 20:00 +0100

csiph-web