[
https://issues.apache.org/jira/browse/SOLR-7583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14559544#comment-14559544
]
Greg Solovyev commented on SOLR-7583:
-------------------------------------
Restoring a core by uploading a snapshot folder:
{code:java}
ContentStreamUpdateRequest restoreReq = new
ContentStreamUpdateRequest("/replication");
restoreReq.setParam("command", ReplicationHandler.CMD_RESTORE);
files = tmpBackupDir.listFiles(); //folder where we have snapshot files
haveFiles = false;
if (files != null) {
for (File f : files) {
if (f != null && f.getName() != null && f.exists()
&& f.length() > 0) {
haveFiles = true;
restoreReq.addFile(f, "application/octet-stream");
}
}
}
{code}
> API to download snapshot files/restore via upload
> -------------------------------------------------
>
> Key: SOLR-7583
> URL: https://issues.apache.org/jira/browse/SOLR-7583
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud
> Reporter: Greg Solovyev
> Attachments: SOLR-7583.patch, SOLR-7583.patch
>
>
> What we are looking for:
> SolrCloud and Solr should have APIs to download a snapshot via HTTP.
> For single node Solr, this API will find a snapshot and stream it back over
> HTTP. For SolrCloud, this API will find a Replica that has the snapshot with
> requested name and stream the snapshot from that replica. Since there are
> multiple files inside a snapshot, the API should probably zip the snapshot
> folder before sending it back to the client.
> Why we need this:
> this will allow us to create and fetch fully contained archives of customer
> data where each backup archive will contain Solr index as well as other
> customer data (DB, metadata, files, etc).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]