Skip to content

add undo command to revert the last restore#16

Closed
laishettikarthik-tech wants to merge 0 commit into
qorexdevs:mainfrom
laishettikarthik-tech:main
Closed

add undo command to revert the last restore#16
laishettikarthik-tech wants to merge 0 commit into
qorexdevs:mainfrom
laishettikarthik-tech:main

Conversation

@laishettikarthik-tech

Copy link
Copy Markdown
Contributor

Closes #15

What this PR does

  • Adds quicksave undo command
  • Scans list_snapshots for the latest "before restore of..." backup
  • Backs up current tree before undoing (so undo is itself reversible)
  • Calls restore on the found backup snapshot

How to test

  1. quicksave save
  2. quicksave restore
  3. quicksave undo ← should take you back

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.

undo: revert the last restore

1 participant