Skip to content

Instantly share code, notes, and snippets.

@serweb-labs
Last active September 26, 2019 03:36
Show Gist options
  • Save serweb-labs/20ab4005f5bb84d41bb0744badb9bb25 to your computer and use it in GitHub Desktop.
Save serweb-labs/20ab4005f5bb84d41bb0744badb9bb25 to your computer and use it in GitHub Desktop.
clean-sentora-hosting
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment