I administrate a server with Debian 10 Buster. This server is almost occupied with a PostgreSQL database. When I inspect the used/avlaible space in this database with pgAdmin, I found 29 Go of full space (data + indexes + sequences + views + functions...). I often do vaccum tasks to keep a clear database.
When I inspect used/avalaible space in the server, I found 58 Go used.
df -h
With the help of this post, I made a more specific analyze to found details with ncdu, and I found this:
ncdu -x
The tmp folder is heavy, almost as the database.
My questions:
Is it a regular behaviour for the system to have a such huge tmp folder ?
Is there any risks of system corruption to do a manual maintenance of those du_chunks ?
Can I do maintenance tasks to clear this folder ? If yes, wich ones ?


CHUNK_FILE="$TMP_DIR/du_chunk_$RANDOM"indropbox_uploader.sh. – Kamil Maciorowski Sep 20 '22 at 16:37find /tmp -type f -mtime +7 -exec rm {} \;Everything seems to works fine. In theory, these temporary files should be deleted, unless an error has appeared during the execution ofdropbox_uploader.sh. I will try to understand why with log files. – GeoGyro Sep 21 '22 at 08:17