[
https://issues.apache.org/jira/browse/SOLR-7583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14559539#comment-14559539
]
Greg Solovyev commented on SOLR-7583:
-------------------------------------
Restoring a core by uploading a zipped snapshot:
{code:java}
ContentStreamUpdateRequest restoreReq = new
ContentStreamUpdateRequest("/replication");
restoreReq.setParam(ReplicationHandler.COMMAND,
ReplicationHandler.CMD_RESTORE);
restoreReq.setParam(ReplicationHandler.FILE_FORMAT,
ReplicationHandler.FILE_FORMAT_ZIP);
restoreReq.addFile(zipFileOutput, "application/octet-stream");
HttpSolrClient client = new HttpSolrClient("http://localhost:8983/" +
restoredCoreName);
NamedList<Object> result = client.request(restoreReq);
{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]