Repository navigation
Conversation
A snapshot that was cancelled or failed stays in snapshots/ without an info.json. It was shown nowhere: not by --list, not in the window, and --delete --snapshot answered "Could not find snapshot", because these folders are kept in SnapshotRepo.invalid_snapshots while the listing and the lookup only read snapshots. Only the next scheduled check removed it, silently. Such snapshots are now listed after the others, in the window with the start time taken from the folder name and the description "Incomplete, cannot be restored", and on the command line below the table. They can be browsed and deleted, from the window or with --delete --snapshot. Restoring one is refused. Ref linuxmint#554.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ref #554.
After a cancelled or failed snapshot the folder stays in
snapshots/without an info.json.Nothing shows it.
--listdoesn't, the window doesn't, andtimeshift --delete --snapshot <name>says "Could not find snapshot", since these folders end upin
SnapshotRepo.invalid_snapshotsand the listing and the lookup only readsnapshots. Only thenext scheduled check removes it, silently.
I'd rather keep such a folder than lose it, since a partial copy can still be useful after a
failed run. It just has to be manageable. So they're now listed after the other snapshots. In the
window the start time comes from the folder name and the description reads "Incomplete, cannot be
restored"; on the command line they're printed below the table. They can be browsed and deleted
from the window or with
--delete --snapshot. Restoring one is refused.Tested with a copy of a snapshot without its info.json. Master's
--listdoesn't show it and--delete --snapshot 2026-11-24_00-00-00answersE: Could not find snapshot. With this branch:and the delete removes it. In the window it shows as its own row with that description.