diff options
Diffstat (limited to 'data-sync')
-rwxr-xr-x | data-sync | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -129,7 +129,12 @@ class data_sync(): def sync_data_entry(self, source, sink, sync_host, entry): print("\nSync "+text_green+text_bold+entry["path"]+text_reset+" from "+text_cyan+source["name"]+text_reset+" to "+text_cyan+sink["name"]+text_reset+" started") - source_path = os.path.join(source["base"], entry["path"]) + if "base" in entry: + base = entry["base"] + else: + base = source["base"] + + source_path = os.path.join(base, entry["path"]) sink_path = os.path.join(sink["base"], sync_host["path"]) + "/" excludes_path = self.excludes_prepare(entry) |