andrew.n

Well-Known Member
Jun 9, 2020
934
346
63
EU
cPanel Access Level
Root Administrator
that's certainly a problem. If you have WHM access you can look in List Accounts for the disk space usage of each and see which one using the most then see what could be removed to free up space.
 

rbairwell

Well-Known Member
May 28, 2022
97
41
18
Mansfield, Nottingham, UK
cPanel Access Level
Root Administrator
To see where the space is being used on your server, you may find df -h useful to show per partition (which is basically what WHM is showing you above) and then use du -h --max-depth=1 /home/ to see which accounts in /home/ are using the most space (you can then use /var/ or /home/username/ to narrow it down). Important note: DO NOT DELETE /home/virtfs - it is a "fake" directory which just links everything else together so whilst it looks like it's consuming a lot of space (it says 155G on my box), it isn't.

If you need to manually push backups out, you'll find /scripts/cpbackup_transport_file (aka /usr/ local/cpanel/ scripts/cp_backup_transport_file): but personally, I would just delete the old backups from the server and hope. I'd also recommend checking Backup->Backup configuration and setting Retention to reasonably low if you are copying to an external destination.

If you are constantly low on space, then "Tweak Settings" and turning on:
* "Delete each domain’s access logs after statistics are gathered "
* "Remove the previous month's archived logs from the user's home directory at the end of each month unless configured by the user"
and turning off:
* "Archive logs in the user's home directory at the end of each stats run unless configured by the user"
* " Keep master FTP log file "
* " Keep log files at the end of the month "
* Keep stats logs"

and setting " The number of days to keep records of ModSecurity™ rule hits. " to a low value should all help.
 
  • Like
Reactions: andrew.n

rbairwell

Well-Known Member
May 28, 2022
97
41
18
Mansfield, Nottingham, UK
cPanel Access Level
Root Administrator
For comparison, I have the following settings:
* Daily backup (every day): Retain 2
* Weekly backup (every Sunday): Retain 2
* Monthly backup on the 1st and 15th: Retain 4

This way if a file/site gets deleted accidentally, I can roll back to the previous day (and go back a further day in case I've just missed the backup/rotation window). If there's a problem (such as a site exploit which was sneaky), I can go back to last week or a fortnight ago - and for safety, I then have the last 2 months available.

That's 8 backups being retained on the server offering a high level of coverage and flexibility for recovery - I'm not sure what you are aiming for for just one backup per week but keeping 2.5 months worth (and then an additional 4 months worth).

The "Retention setting" - as per the backup configuration documentation - is the number of those backups actually kept on your server even after it has transported/copied them to a remote destination. If you are using a remote backup destination, then it's only worth keeping enough backups on the server for "rapid/urgent restores" - otherwise it's just wasted backup space (as they'll be stored remotely anyway). In your case, with the once weekly backups, it isn't worth keeping more than 4 of them as anything further than that is covered by the monthly backup.