The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6099
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Otherwise the encoded user/group names may differ on target system leading to a rewrite of uid/gid... Closes #6097 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From d46ee72870c8ac059fd9539b6a3994f12ae7e5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Sun, 18 Aug 2019 14:54:11 -0400 Subject: [PATCH] lxd/backup: Call tar with --numeric-ids MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise the encoded user/group names may differ on target system leading to a rewrite of uid/gid... Closes #6097 Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/backup.go b/lxd/backup.go index 36eba51b28..26e996bad1 100644 --- a/lxd/backup.go +++ b/lxd/backup.go @@ -385,7 +385,7 @@ func backupCreateTarball(s *state.State, path string, backup backup) error { os.RemoveAll(backupPath) }() - args := []string{"-cf", backupPath, "--xattrs", "-C", path, "--transform", "s,^./,backup/,", "."} + args := []string{"-cf", backupPath, "--numeric-ids", "--xattrs", "-C", path, "--transform", "s,^./,backup/,", "."} _, err = shared.RunCommand("tar", args...) if err != nil { return err
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel