TRY THIS how can I free up space?

paulnye

Guru
Joined
Apr 17, 2011
Messages
208
Reaction score
2
My PBX HDD has 5% free space. What folders might be safe to empty? maybe there's some log files that accumulate that I could clean out. Any help would be much appreciated.

PIAF 3.0.6.5 FreePBX 2.11.0.43 Asterisk 11.8.1 CentOS 6.5 64bit
 
Hi

Accumulated log files in /var/log/, particularly the old ones which are zipped (.gz extension) or those ending in a number, e.g. .1 .2 etc.

Also check the size of the logs in /var/log/asterisk/, some may want truncating.

Joe
 
Create a findlarge script and make it executable. This will find all files larger than 10MB. You can adjust it as desired.
Code:
#!/bin/bash
# if nothing is passed to the script, show usage and exit
[[ -n "$1" ]] || { echo "Usage: findlarge [PATHNAME]"; exit 0 ; }
# simple using find, $1 is the first variable passed to the script
find $1 -type f -size +10000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top