linuxmint / timeshift

System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
2.36k stars 85 forks source link

Timeshift Should Automatically Delete Oldest Snapshots When Disk Space is Low #329

Open hirntot opened 4 weeks ago

hirntot commented 4 weeks ago

after my bug report was not as successful as it could be, I would like to add a related feature request:

Is your feature request related to a problem? Please describe.

I've been frustrated a few times already when my system disk becomes critically low on space due to accumulated Timeshift snapshots. This has led to my system becoming unresponsive or unbootable a few times already, causing significant disruptions. For instance, I once had to deal with a full disk issue that left me unable to access my system or manage my snapshots effectively. Even deleting snapshots via command line was not possible (see other issue).

Describe the solution you'd like

I would like Timeshift to automatically delete the oldest snapshots when it detects that the disk space is critically low. Having an automatic cleanup mechanism would greatly enhance the reliability of Timeshift on systems with limited disk space. It would prevent scenarios where users are locked out of their systems due to full disks.

My ideal solution includes:

Describe alternatives you've considered

As an alternative, I've considered manually managing snapshots and regularly monitoring disk space. However, this is cumbersome and prone to errors, especially when dealing with unexpected space constraints.


thanks for the great tool anyway!!

rp88-rp88 commented 4 days ago

Very oldest is surely the last one you'd want to delete? Very oldest s probably the most important one, the one you made on a fresh system once you'd installed all your programs but before you did anything that could corrupt it and cause you to need to make a restoration.

hirntot commented 4 days ago

Well, the Auto-deletion could be activated only for Auto-created snapshots..