Skip to content

Commit 3b8820a

Browse files
committed
set appropriate paths for remote and local rsync
1 parent b205f2e commit 3b8820a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

dataflow_transfer/run_classes/generic_runs.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def sync_metadata(self):
7979
def generate_rsync_command(self, remote=False, with_exit_code_file=False):
8080
"""Generate an rsync command string."""
8181
if remote:
82+
source = self.run_dir
8283
destination = (
8384
self.transfer_details.get("user")
8485
+ "@"
@@ -92,7 +93,8 @@ def generate_rsync_command(self, remote=False, with_exit_code_file=False):
9293
rsync_options = self.sequencer_config.get("remote_rsync_options", [])
9394
exit_code_file = self.final_rsync_exitcode_file
9495
else:
95-
destination = self.metadata_destination
96+
source = self.run_dir + "/"
97+
destination = self.metadata_destination + "/"
9698
log_file_option = "--log-file=" + os.path.join(
9799
self.run_dir, "rsync_metadata_log.txt"
98100
)
@@ -105,8 +107,8 @@ def generate_rsync_command(self, remote=False, with_exit_code_file=False):
105107
"-au",
106108
log_file_option,
107109
*(rsync_options),
108-
self.run_dir + "/",
109-
destination + "/",
110+
source,
111+
destination,
110112
]
111113
command_str = " ".join(command)
112114
if with_exit_code_file:

0 commit comments

Comments
 (0)