ddev / vscode-ddev-manager

DDEV Manager offers a centralized and user-friendly interface to control every aspect of your DDEV projects.
https://marketplace.visualstudio.com/items?itemName=biati.ddev-manager
Apache License 2.0
12 stars 3 forks source link

[BUG] Issue with "ddev snapshot restore" - hyphens in snapshot name seem to be an issue #10

Closed ultimike closed 9 months ago

ultimike commented 9 months ago

I created a snapshot with the name after-class-12 using DDEV Manager, but when I went to restore it (again, using DDEV Manager), it failed.

It might be related to the name I gave the snapshot, because when I went to restore it from the UI, the hyphens were removed from the name:

Screenshot 2023-09-22 at 2 53 05 PM

The error I received when trying to restore is: Error restoring snapshot, check the extension output log for more information. The logs show:

[error] Failed to restore snapshot afterclass12_20230922145223 for project pmdsum2023: no snapshot found for name afterclass12_20230922145223: snapshot afterclass12_20230922145223 not found in /Users/michael/sites/pmdsum2023/.ddev/db_snapshots

I was able to successfully restore the snapshot from the command line using: ddev snapshot restore after-class-12_20230922145223

System (please complete the following information):

biati-digital commented 9 months ago

Thank's for letting me know, I've confirmed the bug. Will be fixed in the next update.

biati-digital commented 9 months ago

btw in the meantime you can use as name after class 12 instead of after-class-12 and will work correctly.

biati-digital commented 9 months ago

This is fixed in the latest update 1.3.2