diff --git a/src/borg/helpers/parseformat.py b/src/borg/helpers/parseformat.py index 171e1462d..f4d028bd7 100644 --- a/src/borg/helpers/parseformat.py +++ b/src/borg/helpers/parseformat.py @@ -616,7 +616,8 @@ def canonical_path(self): path = "/./" + self.path # /./x = path x relative to cwd else: path = self.path - return "ssh://{}{}{}{}".format( + return "{}://{}{}{}{}".format( + self.proto if self.proto else "???", f"{self.user}@" if self.user else "", self._host, # needed for ipv6 addrs f":{self.port}" if self.port else "",