code: private void removeOldBackups(long daysToKeep) {
  
          long maxAge = (System.currentTimeMillis() - (daysToKeep * 24 * 60 * 60 * 1000));
          File[] files = m_backupFolder.listFiles();
          for (int i = 0; i < files.length; i++) {
              File file = files[i];
              long lastMod = file.lastModified();
              if ((lastMod < maxAge) & (!file.getAbsolutePath().endsWith(CmsConfigurationManager.POSTFIX_ORI))) {
                  file.delete();
                  if (LOG.isDebugEnabled()) {
                      LOG.debug(
                          Messages.get().getBundle().key(Messages.LOG_REMOVE_CONFIG_FILE_1, file.getAbsolutePath()));
                  }
              }
          }
      }
docs: Removes all backups that are older then the given number of days.<p>
  
  @param daysToKeep the days to keep the backups for