my disk space (SD card) grows after each snapshot upgrade.
I’m assuming, that here surely temporary files put on, which one could delete after the installation again?
Since I run daily backup, I would like to keep the image as small as possible.
Does anyone know how to clean up the disk space again?
sudo apt-get clean
from 3900MB to 2400MB
THX a lot
I use dd gzip for Backup. After the cleanup, the created image was unfortunately still 4.3GB in size.
I stopped openhab and then I overwrote the free space with a ZERO file. Then I deleted the ZERO file and started openhab again.
sudo su systemctl stop openhab2 sudo dd if=/dev/zero of=zero.file sudo rm -f zero.file systemctl start openhab2
After that, the gzip backup needed only 800MB.