You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preserve unrelated files when backup excludes contain multiple path components. Single-component patterns remain recursive, while multi-component patterns are relative to the backup directory root. A single trailing `/` is treated only as a directory marker, so `dist` and `dist/` remain recursive while `alpha/beta/` remains root-relative; trailing `/**` preserves root anchoring, so replace `dist/**` with `dist` or `**/dist` when recursive matching is intended. An explicit leading `**/` takes precedence when the normalized target is one component, so `**/dist/**` is also recursive. Patterns are rejected with `INVALID_BACKUP_CONFIG` rather than silently altered when they are empty, match the whole backup, or are match-all/globstar-only forms (`''`, `*`, `***`, `*?`, `?*`, `**`, `**/`), absolute or traversing (`/abs`, `./x`, `../x`, or embedded `.`/`..` components), contain non-canonical repeated or empty separators, are surrounded by whitespace, contain control characters, start with explicit `... ` syntax, or use recursive multi-component globstars such as `**/a/b` or `a/**/b`. Match-all forms are rejected because mksquashfs 4.5 would archive only the root, allowing restore to silently remove the target directory's contents. Gitignored filenames that cannot be represented safely are retained in the backup. Use matching SDK and container image versions because this classification depends on preserving the original pattern spelling across the SDK-to-container boundary.
0 commit comments