]> git.michaelhowe.org Git - packages/b/bup.git/commit
Add --map-user --map-group --map-uid and --map-gid options to restore.
authorRob Browning <rlb@defaultvalue.org>
Tue, 15 Oct 2013 19:20:10 +0000 (14:20 -0500)
committerRob Browning <rlb@defaultvalue.org>
Thu, 7 Nov 2013 17:10:24 +0000 (11:10 -0600)
commitf22c7343443d8af71dcac249cb21c7d7d2cc5686
tree802eaea913ec77da8aed761f51cf7d4f25e66e4b
parent32c0459c00fe73c6a28e0a9dc3483b7fa2562903
Add --map-user --map-group --map-uid and --map-gid options to restore.

Note that the usual metadata rules still appply, so a user or group
entry will normally take precedence over a uid/gid unless
--numeric-ids is specified.  So if you want to map a uid, for example,
you'll either need --numeric-ids, or you'll need to clear the
user/group like this:

  bup restore ... --map-user rlb= --map-uid 1000=2000

These options should also make it possible to recover from archives
that were broken as a result of our incorrect handling of
signed/unsigned stat values (recently fixed).

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Gabriel Filion <gabster@lelutin.ca>
Documentation/bup-restore.md
Makefile
cmd/restore-cmd.py
t/test-restore-map-owner.sh [new file with mode: 0755]