To manage your provisioned server, Fuse uses a flow where it generates a bash script for tasks like managing authorized SSH keys or handling deployments. Fuse uploads the script to your server and then runs it. All these uploaded scripts and their output logs are stored in the `.fuse` folder, either under the fuse `user` or the `root` user, depending on whether root access is required.
Over time, these scripts and logs can accumulate and take up significant space on your server. To address this, I implemented a simple solution: a cron job that automatically cleans up old files. The job deletes files older than 7 days, especially the output files, which can be quite large, such as deployment logs.
After provisioning a server, Fuse runs a script to install this cron job. This ensures that uploaded scripts and their outputs don’t fill up your server’s storage. It’s a minor improvement that helps keep your server clean and well-maintained.