Repository navigation
Conversation
The retag window in create_snapshot_for_tags() was measured from the current time, while the snapshot name comes from the time the run started. When the first snapshot of a run took longer than an hour, the next level due in the same run (for example monthly after weekly) did not find it, created a second snapshot with the same name in the same folder, and its control file replaced the first one's tags.
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.
My weekly and monthly snapshots fell due in the same hourly check. The weekly one took 82 minutes.
The monthly pass then didn't reuse it and made a second snapshot with the same name, in the same
folder, and that run's info.json only kept "monthly". The next hourly check saw no weekly snapshot
and took another one.
From the log (Timeshift 25.12.4, rsync mode):
create_snapshot_for_tags()looks for a snapshot from the last hour using a freshnow, but thesnapshot it should find is dated with
dt_created, the time the run started. This change measuresthe hour from
dt_created. A run that finishes within the hour behaves exactly as before.I tested it on a scratch disk image, with the clock sped up 3600 times through faketime so that
the first snapshot "took" a few hours. Both levels due, empty repository: