Class SolrSnapshotsTool

    • Constructor Detail

      • SolrSnapshotsTool

        public SolrSnapshotsTool​(String solrZkEnsemble)
    • Method Detail

      • createSnapshot

        public void createSnapshot​(String collectionName,
                                   String snapshotName)
      • deleteSnapshot

        public void deleteSnapshot​(String collectionName,
                                   String snapshotName)
      • listSnapshots

        public void listSnapshots​(String collectionName)
      • describeSnapshot

        public void describeSnapshot​(String collectionName,
                                     String snapshotName)
      • getIndexFilesPathForSnapshot

        public Map<String,​List<String>> getIndexFilesPathForSnapshot​(String collectionName,
                                                                           String snapshotName,
                                                                           String pathPrefix)
                                                                    throws org.apache.solr.client.solrj.SolrServerException,
                                                                           IOException
        Parameters:
        pathPrefix - optional
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        IOException
      • buildCopyListings

        public void buildCopyListings​(String collectionName,
                                      String snapshotName,
                                      String localFsPath,
                                      String pathPrefix)
                               throws org.apache.solr.client.solrj.SolrServerException,
                                      IOException
        Parameters:
        pathPrefix - optional
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        IOException
      • backupCollectionMetaData

        public void backupCollectionMetaData​(String collectionName,
                                             String snapshotName,
                                             String backupLoc)
                                      throws org.apache.solr.client.solrj.SolrServerException,
                                             IOException
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        IOException
      • prepareForExport

        public void prepareForExport​(String collectionName,
                                     String snapshotName,
                                     String localFsPath,
                                     String pathPrefix,
                                     String destPath)
        Parameters:
        pathPrefix - optional