Huge amount snapshots

Hi!

My 60GB for the system is almost full. In disk analysis, I can see that there is a huge amount of Tumbleweed Snapshots. Almost 60 folders with 9GB each one. How can I clean it?

I suppose that the system should clean it automatically, is not? This doesn’t make sense.

Thanks

Hi
Those are snapshots, part of snapper… it’s meta data not real data.

You need to configure snapper and manually run the maintenance cronjobs to clean up…

So, the config file is /etc/snapper/configs/root configure as required (I use 2-4 and 4-6 in number limits).

Then run the snapper clean up cron job and balance (may need to run this one a couple of times);


/etc/cron.daily/suse.de-snapper
/etc/cron.weekly/btrfs-balance.sh

Also there are btrfs tools to use for real usage, eg;


btrfs fi usage /

Hi! Worked perfectly! Many thanks. lol!

Hi
Thanks for the feedback :slight_smile: I suggest if there are a few snapshots released in a week, to check the btrfs usage and snapshots (snapper list) and maybe run manually after a zypper up/dup if everything is going ok, especially if you power down the machine it may miss the cronjob time to run.