Code:
/etc/redhat-release:CloudLinux Server release 6.7 (Aleksei Gubarev)
/usr/local/cpanel/version:11.56.0.24
/var/cpanel/envtype:kvm
CPANEL=release
Server version: Apache/2.2.31 (Unix)
Server built: Feb 6 2016 15:41:26
Cpanel::Easy::Apache v3.32.9 rev9999 +cloudlinux
PHP 5.4.45 (cli) (built: Feb 6 2016 15:47:42)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
mysql Ver 15.1 Distrib 10.0.24-MariaDB, for Linux (x86_64) using readline 5.1
-- Legacy backups disabled
-- Backups enabled, compressed, max destination timeout 2700 seconds, max restore timeout 21600 seconds
-- Backup Weekly Saturday Retain 1 Weekly backup. Daily and Monthly backups disabled.
-- Backup Accounts. Disable suspended and access logs. Bandwidth data enabled. Local DNS disabled.
-- Backup system files.
-- Databases per account and entire MySQL directory.
-- Backup directory /backup.
-- Retain backups in the default backup directory.
-- Mount bacup drive as needed: disabled
-- Additional destinations: Amazon s3 (works fine)
The problem is, the system is retaining more backups than I am telling it to, and I don't understand why. Was cleaning up the server a few weeks back and noticed that there were 3 weekly backups in the /backup directory, when WHM was configured to have 2. I deleted one and told WHM to retain only one weekly backup instead, hoping that it meant how many "old" backups, not how many backups total (we want to have 2 backups total).
The next week I checked after the backup and it had 3 backups again. We only want 2! I have it set to 1, which is as low as it will let me set it (I can't set it to 0). What am I doing wrong here and why is it keeping 3 backups no matter what I tell it to do?
Not sure if this is relevant, but after some Googling, I also noticed that there is no "postcpbackup" file in the /scripts directory. Is there supposed to be and might this be the reason my backups are not being cleared?
Thanks in advance for any help.
Last edited by a moderator: