rdiff-backup-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-bugs] [bug #42319] NFS not preserving ownership causes har


From: anonymous
Subject: [Rdiff-backup-bugs] [bug #42319] NFS not preserving ownership causes hardlinks to report "Update mirror temp file ... does not match"
Date: Thu, 08 May 2014 13:50:00 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0

URL:
  <http://savannah.nongnu.org/bugs/?42319>

                 Summary: NFS not preserving ownership causes hardlinks to
report "Update mirror temp file ... does not match"
                 Project: rdiff-backup
            Submitted by: None
            Submitted on: Thu 08 May 2014 01:49:58 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

After an OS upgrade, all changed files with multiple hard links failed to be
backed up reporting "Update mirror temp file ... does not match".

E.g.
UpdateError bin/red Updated mirror temp file
/mnt/autofs/backup/bin/rdiff-backup.tmp.1 does not match source
UpdateError lib/terminfo/v/vt100-am Updated mirror temp file
/mnt/autofs/backup/lib/terminfo/v/rdiff-backup.tmp.341 does not match source
UpdateError lib/terminfo/v/vt220 Updated mirror temp file
/mnt/autofs/backup/lib/terminfo/v/rdiff-backup.tmp.342 does not match source
UpdateError sbin/dmevent_tool Updated mirror temp file
/mnt/autofs/backup/sbin/rdiff-backup.tmp.345 does not match source
UpdateError sbin/fsck.ext2 Updated mirror temp file
/mnt/autofs/backup/sbin/rdiff-backup.tmp.346 does not match source
UpdateError sbin/fsck.ext3 Updated mirror temp file
/mnt/autofs/backup/sbin/rdiff-backup.tmp.347 does not match source
UpdateError sbin/fsck.ext4 Updated mirror temp file
/mnt/autofs/backup/sbin/rdiff-backup.tmp.348 does not match source
UpdateError sbin/fsck.ext4dev Updated mirror temp file
/mnt/autofs/backup/sbin/rdiff-backup.tmp.349 does not match source

It is because I was backing up to an NFS share which didn't preserve uid and
gids.  Instead they were all mapped to nobody.

    # cd /backup
    # touch foo
    # chown bin:bin foo
    # ls -l foo
    -rw-r--r--. 1 nobody nobody 0 May  7 20:52 foo

Chown reports succcess but, but on querying the uid and gid it always reported
99, 99 (nobody, nobody).  For single linked changed files I assume that
rdiff-backup gets the uid/gid from the source.  However for an updated file
with multiple hard links rdiff-backup creates the hard link on the destination
and checks the uid/gid match the metadata.  This fails resulting in the
"Updated mirror temp file" error message.

Fix by making rdiff-backup confirm the uid/gid actually changes when testing
the backup destination before enabling the ownership changing ability.

Thanks,
Mike




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 08 May 2014 01:49:58 PM UTC  Name:
rdiff-backup-confirm-chown-succeeded-v1.patch  Size: 1kB   By: None
Fix: Confirm chown succeeds when testing backup destination abilities (v1)
<http://savannah.nongnu.org/bugs/download.php?file_id=31336>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?42319>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]