From 8d7d6ad2d5dead0896e3062409a24c0513977232 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 24 Oct 2020 18:39:03 +0200 Subject: [PATCH] dump: include username in tar --- internal/dump/tar.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/dump/tar.go b/internal/dump/tar.go index fe08e8825..816a0ffcf 100644 --- a/internal/dump/tar.go +++ b/internal/dump/tar.go @@ -87,6 +87,8 @@ func tarNode(ctx context.Context, tw *tar.Writer, node *restic.Node, repo restic Mode: int64(node.Mode.Perm()), // c_IS* constants are added later Uid: int(node.UID), Gid: int(node.GID), + Uname: node.User, + Gname: node.Group, ModTime: node.ModTime, AccessTime: node.AccessTime, ChangeTime: node.ChangeTime,