[solved I think]Timeshift and flatpaks

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
HaveaMint
Level 5
Level 5
Posts: 675
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

[solved I think]Timeshift and flatpaks

Post by HaveaMint » Sat Aug 24, 2019 2:13 am

In a quest to reduce the size of the system snapshots with timeshift I can reduce it quite a bit by excluding /var/lib/flatpak/. My question is when a restore is done will excluding this cause any problems?
Last edited by HaveaMint on Sun Aug 25, 2019 11:22 pm, edited 1 time in total.
"Tune for maximum Smoke and then read the Instructions".

In2Blues
Level 2
Level 2
Posts: 52
Joined: Thu Oct 05, 2017 4:38 am

Re: Timeshift and flatpaks

Post by In2Blues » Sun Aug 25, 2019 2:42 pm

HaveaMint wrote:
Sat Aug 24, 2019 2:13 am
In a quest to reduce the size of the system snapshots with timeshift I can reduce it quite a bit by excluding /var/lib/flatpak/. My question is when a restore is done will excluding this cause any problems?
Not an expert here but I'm going to assume that if you installed any flatpak packages then they would not be restored with Timeshift. You would have to reinstall them manually. It shouldn't affect anything else.
Linux Mint 19.1 Cinnamon 64-bit
Kernel: 4.15.0-52-generic
Intel Core i5-8400 CPU @ 2.80GHz x 6
8GB RAM
Intel graphics

ajgringo619
Level 6
Level 6
Posts: 1386
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: Timeshift and flatpaks

Post by ajgringo619 » Sun Aug 25, 2019 2:55 pm

One way to avoid this problem is to switch your flatpaks to your user account. By default, flatpaks on Mint use the system repo, installing everything to the folder you mentioned above. If you switch to the user repo, they will be installed to ~/.local/share/flatpak. There will still be a few files saved under /var/lib/flatpak, but the space used is negligible.

If you're interested on how to do this, let me know.
Mint 19.2 XFCE
kernel 4.15.0-64-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM (435.21)
Image

HaveaMint
Level 5
Level 5
Posts: 675
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Timeshift and flatpaks

Post by HaveaMint » Sun Aug 25, 2019 11:05 pm

ajgringo619 wrote:
Sun Aug 25, 2019 2:55 pm
If you're interested on how to do this, let me know.
Yes that would be nice TY.
"Tune for maximum Smoke and then read the Instructions".

ajgringo619
Level 6
Level 6
Posts: 1386
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: Timeshift and flatpaks

Post by ajgringo619 » Sun Aug 25, 2019 11:15 pm

HaveaMint wrote:
Sun Aug 25, 2019 11:05 pm
ajgringo619 wrote:
Sun Aug 25, 2019 2:55 pm
If you're interested on how to do this, let me know.
Yes that would be nice TY.
OK - this is a 3-step process.
  • Uninstall all of your current flatpaks, then remove the system repo:

    Code: Select all

    flatpak remote-delete flathub
  • Next, add the user repo:

    Code: Select all

    flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
  • Now you can reinstall your apps
As a test, just install something small, then run flatpak list --user, then flatpak list --system. This will confirm that you added the repo correctly.
Mint 19.2 XFCE
kernel 4.15.0-64-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM (435.21)
Image

HaveaMint
Level 5
Level 5
Posts: 675
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Timeshift and flatpaks

Post by HaveaMint » Sun Aug 25, 2019 11:17 pm

Thanks AJ
"Tune for maximum Smoke and then read the Instructions".

HaveaMint
Level 5
Level 5
Posts: 675
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Timeshift and flatpaks

Post by HaveaMint » Sun Aug 25, 2019 11:21 pm

If I'm reading your steps correct I can assume if it isn't included in my timeshift snapshots then on a restore without the flatpaks it would break anything I have installed with flatpaks.
I guess that answers the original question also.
"Tune for maximum Smoke and then read the Instructions".

ajgringo619
Level 6
Level 6
Posts: 1386
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: Timeshift and flatpaks

Post by ajgringo619 » Sun Aug 25, 2019 11:23 pm

HaveaMint wrote:
Sun Aug 25, 2019 11:21 pm
If I'm reading your steps correct I can assume if it isn't included in my timeshift snapshots then on a restore without the flatpaks it would break anything I have installed with flatpaks.
I guess that answers the original question also.
Yes. Since Timeshift omits home directories, the flatpaks would also be omitted.
Mint 19.2 XFCE
kernel 4.15.0-64-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM (435.21)
Image

HaveaMint
Level 5
Level 5
Posts: 675
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: [solved I think]Timeshift and flatpaks

Post by HaveaMint » Sun Aug 25, 2019 11:24 pm

Hmmm time to modify settings on TS then thanks.
"Tune for maximum Smoke and then read the Instructions".

Post Reply

Return to “Software & Applications”