From ddd915079517b89454400c802e0d2f32b620a24a Mon Sep 17 00:00:00 2001 From: Kristjan Eimre Date: Thu, 11 Jan 2024 12:15:46 +0200 Subject: [PATCH] Update disk_objectstore/backup_utils.py Co-authored-by: Sebastiaan Huber --- disk_objectstore/backup_utils.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/disk_objectstore/backup_utils.py b/disk_objectstore/backup_utils.py index ef51898..70eb51a 100644 --- a/disk_objectstore/backup_utils.py +++ b/disk_objectstore/backup_utils.py @@ -160,11 +160,8 @@ def call_rsync( # pylint: disable=too-many-arguments if link_dest: if not self.remote: # for local paths, use resolve() to get absolute path - link_dest_str = str(link_dest.resolve()) - else: - # for remote paths, we require absolute paths anyways - link_dest_str = str(link_dest) - all_args += [f"--link-dest={link_dest_str}"] + link_dest = link_dest.resolve() + all_args += [f"--link-dest={link_dest}"] if src_trailing_slash: all_args += [str(src) + "/"]