this post was submitted on 04 Jul 2024
12 points (92.9% liked)

Linux 101 stuff. Questions are encouraged, noobs are welcome!

1063 readers
1 users here now

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

founded 1 year ago
MODERATORS
 

Which folders and files do I need to exclude from TimeShift?

Also is there a way to also exclude programs installed as .deb ?

I doing this to reduce Backup size as I have limited storage.

100GB - Windows 11
400GB - Storage
400GB - Mint
100GB - TimeShift
top 11 comments
sorted by: hot top controversial new old
[–] Krafting@lemmy.world 2 points 4 months ago (1 children)

Ignore the folder .var/app In your homedir, I think this should do the trick

[–] gpstarman 1 points 4 months ago (1 children)

my /var doen't have any folder called app. Do you mean /var/lib/flatpak/app?

[–] Krafting@lemmy.world 2 points 4 months ago (1 children)
[–] gpstarman 1 points 4 months ago

Thank You.

I also found /var/lib/flatpak/app has significant storage use, because runtimes are stored there.

[–] verstra@programming.dev 2 points 4 months ago (1 children)

Sorry, I don't know where flatpacks are installed (probably in /home/user/.local or /var/lib), but i want to nit-pick:

Its directories, not folders.

[–] gpstarman 1 points 4 months ago* (last edited 4 months ago) (1 children)

So, Folders is a Windows term ?

Edit: it just found this

[–] verstra@programming.dev 2 points 4 months ago (1 children)
[–] verstra@programming.dev 2 points 4 months ago (1 children)

Ok now I feel bad for being pedantic and to really helping:

flatpacks are installed ~/.local/share/flatpak and /var/lib/flatpak, depending on distro/flatpak installation I think. On my machine they are in ~/.local/share/flatpak, but there are people reporting having them in /var/lib/flatpak.

Source: https://www.reddit.com/r/flatpak/comments/f6uq3z/where_are_flatpaksflatpak_apps_installed/

Btw, I'd also exclude ~/.cache (for obvious reasons) and everything out outside of /home.

[–] gpstarman 1 points 4 months ago (1 children)

Ok now I feel bad for being pedantic No need man🤝🏽

Thank You for helping

I'd also exclude ~/.cache

I just included my every hidden files and folders in ~/ and now I feel stupid.

Are there any other files and folders that I can exclude to save storage in TimeShift ?

[–] verstra@programming.dev 2 points 4 months ago (1 children)

Everything outside of your home dir? This will prevent applications and logs and configuration to be backed up.

You can use ncdu cli to see which dirs take the most space.

[–] gpstarman 1 points 4 months ago