# disk usage
df -h
# clear logs
find /var/sentora/logs -name "*.log" -exec bash -c 'echo "" > {}' \;
find /var/log -name "*.log" -exec bash -c 'echo "" > {}' \;
# clear bolt cache (all sites)
find /var/sentora/hostdata/ -ipath "*/app/cache/*" -delete
# disk usage
df -h
Last active
September 26, 2019 03:36
-
-
Save serweb-labs/20ab4005f5bb84d41bb0744badb9bb25 to your computer and use it in GitHub Desktop.
clean-sentora-hosting
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment