You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds the ability to pause scheduled snapshots (those started with --scripted).
To do this, i added an option to the timeshift.json, that can contain a string with a boot_id or a timestamp.
When a snapshot is to be created, these values are checked and the snapshot might be skipped.
Here a screenshot of the ui:
unpause is only available, if snapshots are currently paused.
just my 2 cents: as "unpause" is only available if snapshots are paused, i would suggest to put it on top of the list... therefore it jumps right into your eyes (if present) and you don't have to go down the whole list.
perhaps even place "pause until shutdown" at the first place after "unpause" as it might be the most used option.
just my 2 cents: as "unpause" is only available if snapshots are paused, i would suggest to put it on top of the list... therefore it jumps right into your eyes (if present) and you don't have to go down the whole list. perhaps even place "pause until shutdown" at the first place after "unpause" as it might be the most used option.
I have now reordered the entrys. "Unpause" is always visible, but gray when currently not paused. (See screenshot)
I am not sure if i like it that the "ordering" of the entrys is not a bit "messed up". But that might be just me.
As it is now:
stupid question: what happens if a snapshot is prohibited because of a pause?
is it simply completely skipped or does it take place after Timeshift is unpaused?
-> i'm asking because if someone only has monthly snapshots active, and even if just one gets skipped completely because he paused Thimeshift for a short period of time to be on the safe side... it punches quite a hole in the backup strategy.
stupid question: what happens if a snapshot is prohibited because of a pause? is it simply completely skipped or does it take place after Timeshift is unpaused? -> i'm asking because if someone only has monthly snapshots active, and even if just one gets skipped completely because he paused Thimeshift for a short period of time to be on the safe side... it punches quite a hole in the backup strategy.
The snapshots are delayed until the snapshots are unpaused. Thats what timeshift does anyways. It has some moments (once every hour or something), when it checks if it needs to do a snapshot and if it doesnt need one (or its paused) it just terminates. As soon as the next check is triggered it continues to create snapshots. The same way it would if the computer was off during the planned once-a-month snapshot.
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
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.
This adds the ability to pause scheduled snapshots (those started with
--scripted).To do this, i added an option to the
timeshift.json, that can contain a string with a boot_id or a timestamp.When a snapshot is to be created, these values are checked and the snapshot might be skipped.
Here a screenshot of the ui:

unpause is only available, if snapshots are currently paused.
Fixes: #295