NixOS Generations Trimmer: Difference between revisions
imported>Mike1 m change script to less buggy one |
imported>Mike1 m New output shows defaults |
||
| Line 95: | Line 95: | ||
<syntaxHighlight lang=bash> | <syntaxHighlight lang=bash> | ||
❯ sudo ./trim-generations.sh | ❯ sudo ./trim-generations.sh | ||
The current defaults are: | |||
Keep-Gens=30 Keep-Days=30 | |||
Keep these defaults? (y/n):y | |||
Using defaults.. | |||
Keeping default: 30 generations OR 30 days, whichever is more | |||
Operating on profile: /nix/var/nix/profiles/system | |||
oldest generation: 65 | |||
oldest generation created: 2023-08-05 | |||
minutes before now: 46727 | |||
hours before now: 778 | |||
days before now: 32 | |||
current generation: 102 | |||
current generation created: 2023-09-04 | |||
minutes before now: 3527 | |||
hours before now: 58 | |||
days before now: 2 | |||
All generations are no more than 30 days older than current generation. | |||
Oldest gen days difference from current gen: 30 | |||
Nothing to do! | |||
</syntaxHighlight> | </syntaxHighlight> | ||