Skip to content

Use exclude-if-present entries saved before v0.10.0 - #2574

Open
ahmershahdev wants to merge 1 commit into
borgbase:masterfrom
ahmershahdev:fix-legacy-exclude-if-present
Open

ahmershahdev wants to merge 1 commit into
borgbase:masterfrom
ahmershahdev:fix-legacy-exclude-if-present

Conversation

@ahmershahdev

Copy link
Copy Markdown

Fixes #2369.

Older Vorta profiles stored “exclude if present” entries as plain names, which were left out of the borg create command, causing previously excluded folders to be backed up again. Add BackupProfileModel.get_exclude_if_present_files() to handle both legacy plain names and the current [x]/[] format, and use it in backup command generation and the preview tab to keep parsing consistent.

Add unit tests for legacy and enabled entries, disabled entries, and empty or mixed values. The full CI suite passes on Ubuntu and macOS, and both Ruff and mypy pass.

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.

--exclude-if-present option fom GUI gets lost on update

1 participant