Put onprem snapshot to S3 and restoring it to cloud cluster

Hi Team,
Can we restore on prem snapshot to aws cloud through S3?
We created snapshot and dump indices to S3 and then we want to restore it to the cloud cluster.
We are using cloud-aws plugin both the sides

Welcome to our community! :smiley:

Yes you can do this as long as you add the repo to the Cloud cluster.

Thanks a lot warkolm.

Now we have created the snapshot repo with same settings.
and pushed onprem data to s3.
Now over cloud i have created a new index with different name and want to restore it from s3.
Could you please help here.
Below is my onprem repo settings.

	curl -XPUT "http://localhost:9200/_snapshot/myrepo?pretty" -H 'Content-Type: application/json' -d 
	'{
	  "type": "s3",
	   "settings": {
	     "bucket": "migrationbucket",
	     "base_path": "myindex",
	     "region": "us-east-1",
	     "access_key": "XXXXXXXXXXXXX",
	     "secret_key": "XXXXXXXXXXXXXXXXXX"
	   }
	 }'

What are you looking for help with sorry, which part?

What steps are needed after onprem data put to S3.

Add the repo to the Cloud cluster and then run a restore.

when i call restore it says
cannot restore index [INDEX_name] because it's open"
I want to put data to another named index becasue we already have same index name on cloud.

You can rename restores, see Restore a snapshot | Elasticsearch Reference [7.11] | Elastic

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.