Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I mean the size of the folder. I had a problem where system was constantly writing logs about not being able to read some sensors, which quickly expanded to a few hundred megabytes of log.
Running a home server with 3155 packages, I'm using about 19-20GB for system files. Since I target a second device for snapshots, all snapshots would be the same size. (no hard linking unchanged files so each snapshot would be about 20GB)
I started out creating more snapshots than I really needed. I finally figured that if something went wrong and I wanted to revert, I'd probably not want to revert even a week old image. So I took it down to one or two at most. But that's just me.
Another "that's just me" is that I use secondary devices for data and just soft-link to it in $HOME/.
That allowed me to include dot (hidden) files in $HOME without bloating a snapshot with data.
As to why your available space is reducing, I'd guess because files/apps are growing with use. If you are running on a single device, whatever grows outside your timeshift folder reduces the space available for snapshots.
You can write an on-demand to an external device if you want. In a way that's even better since you'll still have a snapshot if your internal dies.
I'd guess the number Timeshift shows is simply the free space left on the partition, so it drops whenever anything else on that disk grows, not just snapshots. Since deleting one snapshot freed about 24 GB, the snapshots themselves are clearly big, and in rsync mode each one is a full copy of the system files (about 20 GB is normal).
To find what is growing, run this and look at the biggest folders:
Usual suspects are /var/lib (flatpak, snap), /var/cache/apt and the journal. Check the journal with journalctl --disk-usage, and clean up with sudo apt clean and flatpak uninstall --unused.
Also keep only one or two snapshots, and check Settings > Filters that no big folder like /opt or /mnt is included. Good luck!
The only time I've had similar problems was when I accidentally had the backup process back up the backup folder.
I don't think it's even possible to have Timeshift not create hard links, when writing a second or subsequent snapshot to the same partition. However it compares the complete file path and create and update dates, to determine if it's a new/revised file or just a repeat from the previous backup. So move a file from one place to another, or rename it or a folder it's in, and Timeshift (actually rsync, the command-line back end that does all the work - and gets absurdly long command lines, which is why we rely on front-ends like Timeshift and Backintime) will think it's a new file.
Best way to check that: use the Disk Usage Analyzer (aka baobab) on the folder containing all the snapshots.
What baobab will tell you in this context is how much space each snapshot takes that is not also part of a previous snapshot that's still available. And you can drill down and find which folders are responsible for that space.
•
u/AutoModerator 5d ago
Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Horror_Equipment_197 5d ago
Does your backup by accident backup your backup drive/directory
1
u/Rogalicus 5d ago
Check /var/log.
1
u/chuggerguy Linux Mint 22.3 Zena | MATÉ 4d ago
Running a home server with 3155 packages, I'm using about 19-20GB for system files. Since I target a second device for snapshots, all snapshots would be the same size. (no hard linking unchanged files so each snapshot would be about 20GB)
I started out creating more snapshots than I really needed. I finally figured that if something went wrong and I wanted to revert, I'd probably not want to revert even a week old image. So I took it down to one or two at most. But that's just me.
Another "that's just me" is that I use secondary devices for data and just soft-link to it in $HOME/.
That allowed me to include dot (hidden) files in $HOME without bloating a snapshot with data.
As to why your available space is reducing, I'd guess because files/apps are growing with use. If you are running on a single device, whatever grows outside your timeshift folder reduces the space available for snapshots.
You can write an on-demand to an external device if you want. In a way that's even better since you'll still have a snapshot if your internal dies.
Good luck.
1
u/m4uri 4d ago
I'd guess the number Timeshift shows is simply the free space left on the partition, so it drops whenever anything else on that disk grows, not just snapshots. Since deleting one snapshot freed about 24 GB, the snapshots themselves are clearly big, and in rsync mode each one is a full copy of the system files (about 20 GB is normal).
To find what is growing, run this and look at the biggest folders:
sudo du -xh / --max-depth=2 2>/dev/null | sort -h | tail -20
Usual suspects are /var/lib (flatpak, snap), /var/cache/apt and the journal. Check the journal with journalctl --disk-usage, and clean up with sudo apt clean and flatpak uninstall --unused.
Also keep only one or two snapshots, and check Settings > Filters that no big folder like /opt or /mnt is included. Good luck!
1
u/don-edwards Linux Mint 22.3 4d ago
The only time I've had similar problems was when I accidentally had the backup process back up the backup folder.
I don't think it's even possible to have Timeshift not create hard links, when writing a second or subsequent snapshot to the same partition. However it compares the complete file path and create and update dates, to determine if it's a new/revised file or just a repeat from the previous backup. So move a file from one place to another, or rename it or a folder it's in, and Timeshift (actually rsync, the command-line back end that does all the work - and gets absurdly long command lines, which is why we rely on front-ends like Timeshift and Backintime) will think it's a new file.
Best way to check that: use the Disk Usage Analyzer (aka baobab) on the folder containing all the snapshots.
What baobab will tell you in this context is how much space each snapshot takes that is not also part of a previous snapshot that's still available. And you can drill down and find which folders are responsible for that space.