Repository navigation
feat(backups): add persistent restoration history - #5630
Draft
olivier-drieux wants to merge 4 commits into
Draft
olivier-drieux wants to merge 4 commits into
olivier-drieux wants to merge 4 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR about?
Add persistent restoration history under Overview → Restorations so users can follow database, volume and whole-Dokploy restores and reopen their logs after closing the original panel or reloading the page. Restore forms start tracked operations independently of the log viewer and link to service-filtered history. The feature reuses Dokploy's existing layout, components and permissions.
The implementation adds a restoration schema/migration, persisted status and redacted logs, permission-scoped list/log APIs, authenticated log downloads, and recovery of abandoned operations. Cloud recovery uses PostgreSQL-backed heartbeats; whole-instance restores preserve the local journal and reimport it after restoring the database. Previous operations predating the feature are not reconstructed.
This is a draft for maintainer feedback, pending agreement on the feature proposal and the integration checks below. The development fixtures, test launcher and local S3/Docker harness are outside the product repository and are not part of this PR.
Validation completed:
Before marking ready for review: validate actual database and whole-instance restores, large/interrupted restores and a production S3 provider. The integration run's new log entries were verified through APIs; the browser blocked a fresh reload, so those entries still need a visual recheck.
Checklist
Before submitting this PR, please make sure that:
canarybranch.Issues related (if applicable)
Feature proposal: #5629
Screenshots (if applicable)
Native local Dokploy preview with seeded test data. The image is hosted on a separate documentation branch of the fork and is not part of this PR's product diff.