Skip to content

Automatic snapshots create two 'boot' snapshots within a single session if the time hits x-o'clock in less than 10 minutes after powering on the PC #145

@NintendoManiac64

Description

@NintendoManiac64

Describe the bug
When using automatic snapshots, if you power on the PC at something like 10:55 then, when the time hits 11:00, a 'boot' snapshot will be created... and then, without suspending, rebooting, or shutting down your PC, once a few minutes pass and the system uptime reaches 10 minutes, a second 'boot' snapshot will be created.

To Reproduce
Steps to reproduce the behavior:

  1. Have Timeshift configured to make automatic boot snapshots
  2. Turn off your PC
  3. Five minutes before the hour, turn on your PC (e.g. turn it on at 10:55; you can also just set your BIOS or UEFI to such a time and just make sure to be disconnected from the internet)
  4. Observe that, when the clock hits 11:00, a Timeshift snapshot will be created
  5. Without suspending, rebooting, or shutting down, wait a few more minutes until, somewhere around 11:04 to 11:06 when system uptime reaches 10 minutes
  6. Observe that another automatic snapshot will be created
  7. Open up Timeshift and observe that the two snapshots taken in steps 4 and 8 are both tagged as 'boot' snapshots

Expected behavior
There should only be a single 'boot' snapshot created during a given single session, ideally being created around 10 minutes after boot to avoid the wackiness that occurs when an automatic snapshot tries to be created during the boot-up process resulting in weird temporary graphical glitches that makes you think that you broke something (at least on my Thinkpad T420 with an i5-5250M + integrated graphics and a 128GB Samsung 830 SSD).

Possibly related to issue #124

It may be worth mentioning that, in theory, both this issue and #124 could be solved by just having the on-the-hour cron job for Timeshift be delayed by 10 minutes (that way it would never be able to run before the normal 10-minutes-after-boot cron job and would not only create just a single 'boot' snapshot but also avoid the issue of snapshots possibly being created during boot-up)

UPDATE: I suppose an alternative would be to just never create two "boot" snapshots within a single session, though that can still result in the "boot" snapshot being taken like a single second after logging in depending on the time.

Screenshots
screenshot

System:

  • Mint 21.1 (upgraded from Mint 21.0)
  • Cinnamon
  • Timeshift v22.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions