timeshift: are there hiddeon configs?

Message
Author
User avatar
tasmoy
Posts: 16
Joined: Sat Feb 10, 2024 1:23 pm

timeshift: are there hiddeon configs?

#1 Post by tasmoy »

Hi There,
I'm trying to use timeshift to also handle a given path. More specifically is another linux distro on the same disk, another partition. When I mount it via KDE (disk&devices), it auto-mounts under /media/<user>/<partition_name>. I tried to force the path in timeshoft set up, but seems to ignore it. I also checked json file in /etc/timeshift. For the sake of the below example lets say user is "forum" and partition is "linuxxx".

Hence:
1) I click on KDE disk & device, and mount "linuxxx". It gets mounted in /media/forum/linuxxx
2) in timeshift setup I add /media/forum/linuxxx
3) I see in setup in timeshift-gtk a line with "+" and /media/forum/linuxxx/**
4) the same I see in the /etc/timeshift/timeshift.json
5) If if click the button "summary" in filter tab, I see many more path not set anyware that are "excluded". One of those is /media
6) I tried to create a snapshot, but the path /media/forum/linuxxx/** is ignored, even if it is marked as "+"

I wonder:
a) where are the path not set in the json files defined? Are those hardcoded in timeshift-gtk?
b) I'm I forced to explicitly mount linuxxx, like say /mnt/linuxxx and enable that path in timeshift?

Thanks for ideas & Happy New Year!

User avatar
fehlix
Developer
Posts: 12577
Joined: Wed Apr 11, 2018 5:09 pm

Re: timeshift: are there hiddeon configs?

#2 Post by fehlix »

tasmoy wrote: Tue Dec 31, 2024 11:23 am a) where are the path not set in the json files defined? Are those hardcoded in timeshift-gtk?
b) I'm I forced to explicitly mount linuxxx, like say /mnt/linuxxx and enable that path in timeshift?
There are a couple of default excludes, like those mention in main.vala

Code: Select all

		exclude_list_default.add("/media/*");
		exclude_list_default.add("/mnt/*");
So they wont' be listed within the settings.json file.
I'd probably choose a another mountpoint, but admit never tried to a use the system backup&restore utility timeshift
as a general backup tool.

User avatar
MadMax
Posts: 483
Joined: Wed Aug 04, 2021 3:25 pm

Re: timeshift: are there hiddeon configs?

#3 Post by MadMax »

timeshift.json ist the only config file. All other exclusions are hard coded into the program.

Timeshift's exclude/include syntax can be very confusing. It's a while back I last configured it, but I remember you have to include directories before their contents. Back then there was also a bug with the GUI exclude/include page, which made it ignore (not write into timeshift.json) certain lines. I don't know if this got fixed since Linux Mint took over development.

Try the following, maybe it also needs an additional line on top with only /media/, since that's what's excluded in the source code.

Code: Select all

  "exclude" : [
    "+ /media/forum/linuxxx/",
    "+ /media/forum/linuxxx/**"
  ],
If it ain't broke, don't fix it.
Main: MX 23 | Second: Mint 22 | HTPC: Linux Lite 7 | VM Machine: Debian 12 | Testrig: Arch/FreeBSD 14 | Work: RHEL 8

Post Reply

Return to “Software / Configuration”