We are using local scheduled backups which is working. However it is not removing the backups past the backup limit.
I have this set to 15 days, however, it is not removing the older backups. I used the Test Permissions which report that nagios user/group likely does not have permissions. Permissions check below.
04-24-2015 00:00:02 DEBUG: Running scheduled local backup ...
04-24-2015 00:00:02 INFO: Creating a local backup: nagiosxi.1429858802
04-24-2015 00:00:02 INFO: Too many backups! Limit is 15. Removing: nagiosxi.1426402801.tar.gz before proceeding with backup.
04-24-2015 00:00:03 DEBUG: Sending create local backup command to CmdSubsystem
04-25-2015 00:00:02 DEBUG: Running scheduled local backup ...
04-25-2015 00:00:02 INFO: Creating a local backup: nagiosxi.1429945202
04-25-2015 00:00:02 INFO: Too many backups! Limit is 15. Removing: nagiosxi.1426402801.tar.gz before proceeding with backup.
04-25-2015 00:00:03 DEBUG: Sending create local backup command to CmdSubsystem
04-26-2015 00:00:02 DEBUG: Running scheduled local backup ...
04-26-2015 00:00:02 INFO: Creating a local backup: nagiosxi.1430031602
04-26-2015 00:00:02 INFO: Too many backups! Limit is 15. Removing: nagiosxi.1426402801.tar.gz before proceeding with backup.
04-26-2015 00:00:03 DEBUG: Sending create local backup command to CmdSubsystem
04-27-2015 00:00:02 DEBUG: Running scheduled local backup ...
04-27-2015 00:00:02 INFO: Creating a local backup: nagiosxi.1430118002
04-27-2015 00:00:02 INFO: Too many backups! Limit is 15. Removing: nagiosxi.1426402801.tar.gz before proceeding with backup.
04-27-2015 00:00:03 DEBUG: Sending create local backup command to CmdSubsystem
04-28-2015 00:00:02 DEBUG: Running scheduled local backup ...
04-28-2015 00:00:02 INFO: Creating a local backup: nagiosxi.1430204402
04-28-2015 00:00:02 INFO: Too many backups! Limit is 15. Removing: nagiosxi.1426402801.tar.gz before proceeding with backup.
04-28-2015 00:00:03 DEBUG: Sending create local backup command to CmdSubsystem
Change the scheduled backups to happen a few minutes in to the future.
When the backup is run, you should see it's output in the cmdsubsys.log file.
Post the output and then you can put back the schedule to happen at your normal time.
Be sure to check out our Knowledgebase for helpful articles and solutions!
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
PROCESSED 0 COMMANDS
CMDLINE=rm -rf /store/backups/nagiosxi/nagiosxi.1426402801.tar.gz
OUTPUT=
RETURNCODE=0
.PROCESSING COMMAND ID 2167...
PROCESS COMMAND: CMD=1117, DATA=a:2:{i:0;s:19:"nagiosxi.1430353201";i:1;s:22:"/store/backups/dailys/";}
CMDLINE=/usr/local/nagiosxi/scripts/backup_xi.sh -n nagiosxi.1430353201 -d /store/backups/dailys
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
tar: /usr/local/nagios/share/perfdata/S3FP01N: file changed as we read it
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.............................................tar: /usr/local/nagios/share/perfdata/L2E-LAN-B05: file changed as we read it
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
tar: /usr/local/nagios/share/perfdata/ZGW-INT-B01: file changed as we read it
tar: /usr/local/nagios/share/perfdata/edmbchprn1/_HOST_.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/edmbchprn1: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up PostgresQL databases...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/dailys/nagiosxi.1430353201.tar.gz
OUTPUT=Backup stored in /store/backups/dailys/nagiosxi.1430353201.tar.gz
RETURNCODE=0
PROCESSED 2 COMMANDS
04-29-2015 17:20:01 DEBUG: Running scheduled local backup ...
04-29-2015 17:20:01 INFO: Creating a local backup: nagiosxi.1430353201
04-29-2015 17:20:01 INFO: Too many backups! Limit is 15. Removing: nagiosxi.1426402801.tar.gz before proceeding with backup.
04-29-2015 17:20:02 DEBUG: Sending create local backup command to CmdSubsystem