Skip to content

Add selective app targeting for backup/restore/link commands#2172

Open
kzaoaai wants to merge 1 commit into
lra:masterfrom
kzaoaai:feat/selective-app-backup-restore-v2
Open

Add selective app targeting for backup/restore/link commands#2172
kzaoaai wants to merge 1 commit into
lra:masterfrom
kzaoaai:feat/selective-app-backup-restore-v2

Conversation

@kzaoaai
Copy link
Copy Markdown

@kzaoaai kzaoaai commented Apr 18, 2026

Summary

This PR adds support for targeting specific applications in Mackup command flows instead of always operating on the full configured app set.

What changed

  • Added selective app arguments to:
    • backup
    • restore
    • link install
    • link
    • link uninstall
  • Added explicit validation of requested app names.
    • Unknown app names now fail fast with a clear error instead of being silently ignored.
  • Extended show to accept multiple applications.
  • Preserved deterministic processing order by sorting app names before execution.
  • Included lint/style cleanup in main.py.

Compatibility and behavior

  • Existing single-app and no-app usage remains supported.
  • Default behavior (no app list supplied) remains unchanged.

Verification

  • pytest tests/ passes locally (82 tests).
  • ruff check src/mackup/main.py passes.

Context

This is a refreshed, up-to-date implementation of the selective app workflow discussed in #968 and #2034, with reviewer concerns addressed (validation + deterministic ordering + multi-app show).

Addresses #611 and #1128

- Support explicit app lists for backup/restore/link install/link/link uninstall

- Validate requested app names and fail on unknown apps

- Extend show to accept multiple applications

- Preserve deterministic processing order
@kzaoaai kzaoaai force-pushed the feat/selective-app-backup-restore-v2 branch from 9b18151 to a69ae53 Compare April 18, 2026 21:55
@kzaoaai kzaoaai marked this pull request as ready for review April 18, 2026 21:56
@kzaoaai kzaoaai force-pushed the feat/selective-app-backup-restore-v2 branch from e8ea81c to a69ae53 Compare April 19, 2026 01:50
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.

1 participant