Snapshots cannot be removed when plan is missing
Closed this issue · 3 comments
fortysix2ahead commented
Describe the bug
A snapshot cannot be removed via Forget when the associated plan which was used to create that snapshot has been removed.
To Reproduce
Steps to reproduce the behavior:
- Create a plan
- Run a backup, resulting in snapshot 1
- Delete the plan
- Try to forget snapshot 1
Expected behavior
Snapshot 1 is removed.
Screenshots
Platform Info
- OS and Architecture [e.g. Windows 10 x64, Darwin arm64]
- Backrest Version 1.0.0, running in docker
- Raspberry Pi OS, Bookworm
Additional context
garethgeorge commented
Hey, would you mind including the error message you're seeing in the bug report?
fortysix2ahead commented
Sure, there's a one liner: Failed to forget snapshot: ConnectError: [unknown] failed to get plan "test": get plan "test": plan not found
garethgeorge commented
Fixed in 1.2.0 :)