The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6924
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) === This adds the 'S' flag to tar's transformation. It tells tar to not apply transformation to symbolic link targets. Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From 41c60eb27ca5f3cff5ef34f87490bcfd606d799f Mon Sep 17 00:00:00 2001 From: Thomas Hipp <thomas.h...@canonical.com> Date: Mon, 24 Feb 2020 10:57:17 +0100 Subject: [PATCH] lxd/backup: Have tar not transform symlink targets This adds the 'S' flag to tar's transformation. It tells tar to not apply transformation to symbolic link targets. Signed-off-by: Thomas Hipp <thomas.h...@canonical.com> --- lxd/backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/backup.go b/lxd/backup.go index 64c5e5b022..38d7077ed3 100644 --- a/lxd/backup.go +++ b/lxd/backup.go @@ -181,7 +181,7 @@ func backupCreateTarball(s *state.State, path string, b backup.Backup, c instanc os.RemoveAll(backupPath) }() - args := []string{"-cf", backupPath, "--numeric-owner", "--xattrs", "-C", path, "--transform", "s,^./,backup/,", "."} + args := []string{"-cf", backupPath, "--numeric-owner", "--xattrs", "-C", path, "--transform", "s,^./,backup/,S", "."} _, 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