Skip to content

Restore files with line breaks in their names - #2575

Open
ahmershahdev wants to merge 1 commit into
borgbase:masterfrom
ahmershahdev:fix-extract-newline-filenames
Open

ahmershahdev wants to merge 1 commit into
borgbase:masterfrom
ahmershahdev:fix-extract-newline-filenames

Conversation

@ahmershahdev

Copy link
Copy Markdown

Fixes #2568 and #2025.

File names containing line breaks were split into multiple rules in the patterns file, causing Borg to reject the file and restore nothing. This change writes those paths as exact-match regex rules, while leaving normal paths unchanged.

Added unit and integration tests to verify that only the selected file is restored. Tests pass on Ubuntu and macOS, and the integration test passes with Borg 1.2.8 and 1.4.4. Ruff passes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No restore of multiline filename files.

1 participant