| Server IP : 198.71.59.75 / Your IP : 216.73.216.240 Web Server : nginx/1.30.2 System : Linux elegant-dhawan.198-71-59-75.plesk.page 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64 User : realtyna_guys ( 10000) PHP Version : 8.2.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /etc/cron.daily/ |
Upload File : |
#!/bin/sh
### Copyright 1999-2026. WebPros International GmbH. All rights reserved.
# discover "/opt/psa/var/health/data/*/$target-*" directories
# and remove rrd databases which have not being updated for a month
# also remove directories which became empty
# "disk", "df", and "interface" targets may refer to unmounted devices
# "plesk_cgroups" target may refer to removed users
for target in "disk" "df" "interface" "plesk_cgroups"; do
/usr/bin/find "/opt/psa/var/health/data" -mindepth 2 -maxdepth 2 -type d -name "${target}-*" | while read -r target_rrd_d; do
/usr/bin/find "$target_rrd_d" -mindepth 1 -maxdepth 1 -name "*.rrd" -type f -mtime +30 -delete
/usr/bin/find "$target_rrd_d" -maxdepth 0 -type d -empty -delete
done
done