If you created snapshot on filesystem, you need to copy backup from the 
master node VM of your cluster. This is where entire snapshot is located. 



On Wednesday, 6 August 2014 03:10:39 UTC+5:30, Donald Cha wrote:
>
> I would like to use the Snapshot functionality to move indices from an OLD 
> server to a NEW server. My approach to do this task was to take a snapshot 
> from OLD server, copy the snapshot over to the NEW server (I zipped this 
> snapshot because it contained multiple indices), and try to restore that 
> snapshot from NEW server. However, I am not able to restore my snapshot on 
> NEW server. 
>
> Here are the commands that I've typed.
>
> OLD$ curl -X PUT 'http://localhost:9200/_snapshot/my_backup' -d '{
>    "type" : "fs",
>    "settings"  : {
>     "location" : "/mnt1/elasticsearch_backup/my_backup", 
>     "compress" : true
>    }
>   }'
>
> OLD$ curl -XPUT 
> "localhost:9200/_snapshot/my_backup/snapshot_1?wait_for_completion=true"
> OLD$ tar cvfz elasticsearch_backup.tgz /mnt1/elasticsearch_backup/
>
> OLD$ scp elasticsearch_backup.tgz user@NEW:/mnt1/dropbox   (We are using 
> AmazonAWS server)
>
> NEW$ tar -zxvf elasticsearch_backup.tgz 
>
> curl -XPUT 'http://localhost:9200/_snapshot/my_backup2' -d '{
>     "type": "fs",
>     "settings": {
>         "location": "/mnt1/dropbox/mnt1/my_backup/",
>         "compress": true
>     }
> }'
>  
> ^ (At that location, I see my indices directory that I've unzipped from 
> tar file that I've copied over from OLD server)
>
> NEW$ curl -X POST 
> "localhost:9200/_snapshot/my_backup2/snapshot_1/_restore?wait_for_completion=true"
>
> and the error message I get at this point is 
>
> {"error":"SnapshotMissingException[[my_backup2:snapshot_1] is missing]; 
> nested: 
> FileNotFoundException[/mnt1/dropbox/mnt1/my_backup/snapshot-snapshot_1 (No 
> such file or directory)]; ","status":404}
>
>
> It would be great if someone can point out what I can possibly do wrong 
> here
>
> Thanks.
>
>
>
> Additionally, if I type 
>
> http://OLD:9200/_snapshot/my_backup/_all
>
> I see 
>
> {
>
>    - snapshots: 
>    [
>       - 
>       {
>          - snapshot: "snapshot_1",
>          - indices: 
>          [
>             - "user_events_43294971_1401773217",
>             - "user_events_111630610_1404969230",
>             - "user_events_85270411_1398889365",
>             - "user_events_86845965_1399787308"
>             ],
>          - state: "SUCCESS",
>          - start_time: "2014-08-05T01:42:15.655Z",
>          - start_time_in_millis: 1407202935655,
>          - end_time: "2014-08-05T02:16:39.919Z",
>          - end_time_in_millis: 1407204999919,
>          - duration_in_millis: 2064264,
>          - failures: [ ],
>          - shards: 
>          {
>             - total: 32,
>             - failed: 0,
>             - successful: 32
>             }
>          }
>       ]
>    
> }
>
>
> However, if I type 
>
> http://NEW:9200/_snapshot/my_backup2/_all
>
> All I see is
>
> {
>
>    - snapshots: [ ]
>    
> }
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/cb11f337-b85e-4dbe-8777-94283b409c48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to