From 9a5d2bc3cef25f6510137f9ba899ea652dd9e0d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Fr=C3=B6hlich?= Date: Sun, 2 Nov 2025 14:40:46 +0100 Subject: [PATCH] Bugfix: local path regex should not match s3 and b2 urls --- src/borg/helpers/parseformat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/helpers/parseformat.py b/src/borg/helpers/parseformat.py index 3d8d637cc..107dda8b8 100644 --- a/src/borg/helpers/parseformat.py +++ b/src/borg/helpers/parseformat.py @@ -451,7 +451,7 @@ class Location: # path may contain any chars. to avoid ambiguities with other regexes, # it must not start with "//" nor with "scheme://" nor with "rclone:". local_path_re = r""" - (?!(//|(ssh|socket|sftp|file)://|rclone:)) + (?!(//|(ssh|socket|sftp|file)://|(rclone|s3|b2):)) (?P.+) """