# Snapshot Kibana 6.8 under Windows

**URL:** <https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [January 19, 2021, 12:03pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537 "2021-01-19T12:03:31Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![dumitrao](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dumitrao](https://discuss.elastic.co/u/dumitrao)\
**Post date:** [January 19, 2021, 12:03pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/1 "2021-01-19T12:03:32Z")

</div>

Hello,

I am trying to setup Kibana to create a snapshot but I am missing the setting - Register a repository - in Kibana 6.8  
I add already in the elasticsearch.yml `- path.repo: E:\Program Files\Elastic\\Elasticsearch`

> **[Tutorial: Snapshot and Restore | Kibana Guide \[master\] | Elastic](https://www.elastic.co/guide/en/kibana/master/snapshot-restore-tutorial.html#register-repo-example)**

Than I need to restore it in Kibana 7.10

I didn't find this problem in the Forum.

Thank you a lot

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f3a001e8969a1c906c964074c202882f457fc2e4.png)

---

<div class="post-metadata">

**Author:** ![dumitrao](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dumitrao](https://discuss.elastic.co/u/dumitrao)\
**Post date:** [January 21, 2021, 8:38am UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/2 "2021-01-21T08:38:15Z")

</div>

Update  
I manage to create the Repository but I can't create the Backup

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/b/ab1c7231b1c9169515bc20d1da8b7231ebaec8cf.png)

Thank you

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 21, 2021, 8:49am UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/3 "2021-01-21T08:49:45Z")

</div>

What's the name of the repository? If it's `my_fs_backup`, use that name instead.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 21, 2021, 8:51am UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/4 "2021-01-21T08:51:01Z")

</div>

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

---

<div class="post-metadata">

**Author:** ![dumitrao](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dumitrao](https://discuss.elastic.co/u/dumitrao)\
**Post date:** [January 21, 2021, 10:59am UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/5 "2021-01-21T10:59:22Z")

</div>

This is how I created it

```auto
PUT /_snapshot/Backup
   {
     "type": "fs",
      "settings": {
        "compress" : true,
        "location": "my_backup_location"

```

* * *

It created the Folder ''my\_backup\_location''  
Isn't it the name Backup in this case ?  
Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 21, 2021, 3:25pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/6 "2021-01-21T15:25:34Z")

</div>

Yes. But `Backup` is not `backup` I guess 😉

---

<div class="post-metadata">

**Author:** ![dumitrao](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dumitrao](https://discuss.elastic.co/u/dumitrao)\
**Post date:** [January 22, 2021, 12:19pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/7 "2021-01-22T12:19:32Z")

</div>

I am step closer 🙂 I could also create the Backup with this cmd  
PUT /\_snapshot/Backup/my\_snapshot  
Now how do I restore the Backup from version 6.8 to 7.10.1  
Do I just copy the files from the 6.8 Server to the 7.10.1 Server ?  
Thank you

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 22, 2021, 1:02pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/8 "2021-01-22T13:02:25Z")

</div>

Do the same thing you did but in the new cluster.  
If possible just mount the shared fs in the new cluster as well. I'd probably mount it as read only probably.

---

<div class="post-metadata">

**Author:** ![dumitrao](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dumitrao](https://discuss.elastic.co/u/dumitrao)\
**Post date:** [January 22, 2021, 3:53pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/9 "2021-01-22T15:53:27Z")

</div>

so basicaly you mean

- I create the Repo
- copy the files from the old location to the new location
- I need to create a backup otherwise there is no option to restore it directly

There is just one server so there is no cluster.

---

<div class="post-metadata">

**Author:** ![dumitrao](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dumitrao](https://discuss.elastic.co/u/dumitrao)\
**Post date:** [January 26, 2021, 1:29pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/10 "2021-01-26T13:29:06Z")

</div>

i am a step closer, I could import the Backup but I cannot restore it.  
I got this Error

```auto
[invalid_index_name_exception] Invalid index name [.kibana_task_manager], already exists as alias, with { index_uuid="_na_" & index=".kibana_task_manager" }

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 26, 2021, 4:05pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/11 "2021-01-26T16:05:52Z")

</div>

Do not import the `.kibana_task_manager` index.

You should actually restore only the indices which contains the real data.

Or you will most likely have to close the indices first then restore I guess.

[Doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-restore-snapshot.html) says:

> However, an existing index can be only restored if it’s [closed](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-close.html) and has the same number of shards as the index in the snapshot. The restore operation automatically opens restored indices if they were closed and creates new indices if they didn’t exist in the cluster.

---

<div class="post-metadata">

**Author:** ![dumitrao](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dumitrao](https://discuss.elastic.co/u/dumitrao)\
**Post date:** [January 29, 2021, 10:06am UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/12 "2021-01-29T10:06:05Z")

</div>

I could restore the Indices from last year but there is one from this year where i got this message

```auto
[snapshot_restore_exception] [my_backup_location:my_snapshot/HX1xrkZ2SZWIZ3q0o82DdQ] cannot restore index [logflow-2021.01] with [1] shards from a snapshot of index [logflow-2021.01] with [5] shards

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 1, 2021, 9:55am UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/13 "2021-02-01T09:55:01Z")

</div>

The index already exists with a different number of shards. It can be restored.

If you don't have existing data in it, run:

```auto
DELETE logflow-2021.01

```

Otherwise, you can may be do a reindex from remote to reindex only the recent data  
for January from the old cluster to the new one.

---

<div class="post-metadata">

**Author:** ![dumitrao](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dumitrao](https://discuss.elastic.co/u/dumitrao)\
**Post date:** [February 1, 2021, 12:25pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/14 "2021-02-01T12:25:21Z")

</div>

> [@dadoonet](#):
>
> `DELETE`

Thank you, now it worked. Yes I delete the Index and than restored. It was the easyear way.  
For now the Restore from backup Problem is solved.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 1, 2021, 12:25pm UTC](https://discuss.elastic.co/t/snapshot-kibana-6-8-under-windows/261537/15 "2021-03-01T12:25:45Z")

</div>

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