code: public static List<File> getIncrementalFiles(File restoreDir)
     {
        ArrayList<File> list = new ArrayList<File>();
  
        Pattern fullBackupPattern = Pattern.compile(".+\\.0");
  
        for (File f : PrivilegedFileHelper.listFiles(restoreDir, new FileFilter()
        {
           public boolean accept(File pathname)
           {
              Pattern p = Pattern.compile(".+\\.[0-9]+");
              Matcher m = p.matcher(pathname.getName());
              return m.matches();
           }
        }))
        {
           if (fullBackupPattern.matcher(f.getName()).matches() == false)
           {
              list.add(f);
           }
        }
  
        return list;
     }
docs: Get list of incremental backup files.
  
  @param restoreDir
  @return list of files