Skip to content

feat(pitr): add command to restore a database to a specific point in time - #1244

Draft
matthieu526-scalingo wants to merge 3 commits into
masterfrom
feat/sTORY-3565/create-pitr-restore-command
Draft

feat(pitr): add command to restore a database to a specific point in time#1244
matthieu526-scalingo wants to merge 3 commits into
masterfrom
feat/sTORY-3565/create-pitr-restore-command

Conversation

@matthieu526-scalingo

Copy link
Copy Markdown
Contributor

Add a new command to restore PITR.
It reuses the same mechanism as maintenance. Both components are shared between SR addons and DR databases.
It adds a small check to ensure the time is correctly parsed.

  • Add a changelog entry in the section "To Be Released" of CHANGELOG.md
  • right now depending on this PR. Before merging it should be set to a released version (or not?)
  • QA not executed yet

@matthieu526-scalingo matthieu526-scalingo self-assigned this Aug 5, 2026
@matthieu526-scalingo
matthieu526-scalingo requested a review from a team as a code owner August 5, 2026 14:09
@matthieu526-scalingo
matthieu526-scalingo requested review from SCedricThomas, briceamen and curzolapierre and removed request for a team and briceamen August 5, 2026 14:09
@matthieu526-scalingo
matthieu526-scalingo marked this pull request as draft August 5, 2026 14:10

@curzolapierre curzolapierre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question otherwise LGTM

Comment thread db/pitr/restore.go
return errors.Wrapf(ctx, err, "get Scalingo client")
}

operationID, err := c.DatabasePITRRestore(ctx, currentResource, addonName, restoreTime)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: what about adding a confirmation message to the end user?
Which would format the date as human readable (maybe add the local time conversion).

Comment thread README.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Praise thanks for this update

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