Page 1 of 1
Optimising Storage: Managing Ticket Attachments Efficiently
Posted: Tue Jan 21, 2025 5:33 pm
by adildev89
Hi
At my company, the technical team handles large open tickets with extensive customer attachments, often big image files. Once resolved, I suspect these files aren't automatically deleted, leading to significant unnecessary storage usage in GBs. How can I optimise this process?
Kind regards
Adil
Re: Optimising Storage: Managing Ticket Attachments Efficiently
Posted: Wed Jan 22, 2025 5:30 pm
by Klemen
No data is deleted when a ticket is marked resolved.
You can either delete old tickets or delete files manually from the "attachments" folder.
Re: Optimising Storage: Managing Ticket Attachments Efficiently
Posted: Fri Jan 24, 2025 12:45 pm
by shadedk
Hello adildev89,
Maybe you can use what I do. I run HESK on a Linux server with jpegoptim, pngcrush, and optipng installed. I use this little script to optimize the size of image files, as they are often the ones that take up the most space:
Code: Select all
#!/bin/sh
for i in find . -name "*.png"; do pngcrush -e .png2 -rem allb -brute -reduce $i mv ${i}2 $i optipng -o7 $i done
jpegoptim --max=85 --strip-all --preserve --totals *.jpg
After the last run (it had been a while), our attachments folder went from 169MB to 82MB. So, it is quite an improvement.
Re: Optimising Storage: Managing Ticket Attachments Efficiently
Posted: Fri Jan 24, 2025 12:54 pm
by Klemen
Thanks for sharing the image optimization path, that's also an option (not for all users, of course).