0

The GUI version of Timeshift offers the ability to automatically keep the last X backups:
https://raw.githubusercontent.com/teejee2008/timeshift/master/images/settings_schedule.png

As far as I can see, there is no such option using CLI:
https://github.com/teejee2008/timeshift#readme
https://manpages.debian.org/testing/timeshift/timeshift.1.en.html

Is there such an option using CLI?

1 Answer 1

3

You can edit the /etc/timeshift.json file to set these values. The timeshift.json file in the repo shows these values to be the defaults:

  "count_monthly" : "2",
  "count_weekly" : "3",
  "count_daily" : "5",
  "count_hourly" : "6",
  "count_boot" : "5"

P.S.: I found this approach from Issue #288 on the same Github repo.

3
  • Thank you. Should be better documented.
    – NoExpert
    Commented Aug 12, 2021 at 19:20
  • @NoExpert That's a fair point. There is another issue discussion which states that Timeshift has dependencies on GTK3, which is a GUI system. The program must have been conceived and built as a GUI application. That is probably is why the CLI documentation is lacking.
    – Haxiel
    Commented Aug 13, 2021 at 4:57
  • 1
    I believe /etc/timeshift/timeshift.json is the file to edit. /etc/timeshift.json shows the default valuees
    – NoExpert
    Commented Sep 5, 2021 at 19:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .