garethgeorge / backrest

Backrest is a web UI and orchestrator for restic backup.
GNU General Public License v3.0
787 stars 31 forks source link

Snapshots cannot be removed when plan is missing #312

Closed fortysix2ahead closed 4 days ago

fortysix2ahead commented 1 month ago

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:

  1. Create a plan
  2. Run a backup, resulting in snapshot 1
  3. Delete the plan
  4. Try to forget snapshot 1

Expected behavior Snapshot 1 is removed.

Screenshots

Platform Info

Additional context

garethgeorge commented 1 month ago

Hey, would you mind including the error message you're seeing in the bug report?

fortysix2ahead commented 1 month ago

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 4 days ago

Fixed in 1.2.0 :)