Skip to content

Add DB source filtering to prevent selection for restoration#97

Merged
Skyfay merged 2 commits into
Skyfay:devfrom
iberlob:select_restore
May 25, 2026
Merged

Add DB source filtering to prevent selection for restoration#97
Skyfay merged 2 commits into
Skyfay:devfrom
iberlob:select_restore

Conversation

@iberlob

@iberlob iberlob commented May 24, 2026

Copy link
Copy Markdown
Contributor

Restore Exclusion Feature

Overview

The "Exclude from Restore" feature allows database sources to be excluded from the restore operation dropdown while maintaining their functionality for creating new backups.

Configuration
When creating or editing a database source, a new toggle switch "Exclude from Restore" appears in the Configuration tab. This switch lets you mark the source as unavailable for restoration purposes.

Behavior

Enabled: When the toggle is active, the source will not appear in the dropdown list when users initiate a database restore operation.

Disabled (default): The source appears normally in all restore dropdowns.
Independent: The exclusion flag only affects restore operations. The source continues to work normally for:

Creating new backups
Scheduling backup jobs
Health checks

Use Cases

Test/Development Sources: Exclude staging database sources to prevent accidental production data overwrites during restore operations.
Deprecated Sources: Hide sources that are no longer actively used without deleting them.
Safety Mechanism: Prevent users from selecting certain critical sources as restore destinations.
Technical Implementation

The exclusion flag is stored in the adapter's metadata and is checked during the source filtering process when rendering the restore dialog. The filtering is safe and handles malformed metadata gracefully.

imagen

As before, if you don't see it as useful or necessary, feel free to discard it

Thx!

@Skyfay

Skyfay commented May 24, 2026

Copy link
Copy Markdown
Owner

Hey @iberlob

Thanks for this pull request. That sounds like a feature that makes sense to me. I'll take a look at the code tomorrow.

Best regards,
Manu

Remove a redundant/misleading sentence from the Exclude from Restore helper text in src/components/adapter/form-sections.tsx so the message only states the source won't appear as a restore target, avoiding confusion about backup creation.
@Skyfay
Skyfay changed the base branch from main to dev May 25, 2026 09:28
@Skyfay
Skyfay merged commit ce83599 into Skyfay:dev May 25, 2026
5 checks passed
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.

2 participants