# Snapshot restore to a different server

**URL:** https://community.cratedb.com/t/snapshot-restore-to-a-different-server/364
**Category:** CrateDB
**Created:** [April 2, 2020, 9:31pm UTC](https://community.cratedb.com/t/snapshot-restore-to-a-different-server/364 "2020-04-02T21:31:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@robert](https://community.cratedb.com/u/robert)
#### Post date: [April 2, 2020, 9:31pm UTC](https://community.cratedb.com/t/snapshot-restore-to-a-different-server/364/1 "2020-04-02T21:31:13Z")

</div>

I am experimenting with crate and I am at the backup/restore point.  
I have managed to take a backup:  
CREATE repository snapshots type fs WITH (location=‘snapshots’, compress=true);  
CREATE snapshot snapshots.all\_tables ALL WITH (wait\_for\_completion=true);

And now I want to copy the backup files and restore them to a different crate server.  
I have tried the obvious, copy the files to the appropriate repo directory on other server and the create the repository with the same statement as above but the “SELECT \* from sys.snapshots limit 100;” does not return the snapshot.

Is there any way to make it work?

---

<div class="post-metadata">

### Author: ![Michael\_Kleen](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/michael_kleen/32/172_2.png) [@Michael\_Kleen](https://community.cratedb.com/u/Michael_Kleen)
#### Post date: [July 10, 2020, 3:11pm UTC](https://community.cratedb.com/t/snapshot-restore-to-a-different-server/364/2 "2020-07-10T15:11:32Z")

</div>

What version of crate were you using ?

---

<div class="post-metadata">

### Author: ![robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@robert](https://community.cratedb.com/u/robert)
#### Post date: [July 10, 2020, 3:37pm UTC](https://community.cratedb.com/t/snapshot-restore-to-a-different-server/364/3 "2020-07-10T15:37:53Z")

</div>

My version is 4.0.10

---

<div class="post-metadata">

### Author: ![robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@robert](https://community.cratedb.com/u/robert)
#### Post date: [March 18, 2021, 11:53pm UTC](https://community.cratedb.com/t/snapshot-restore-to-a-different-server/364/4 "2021-03-18T23:53:35Z")

</div>

Is there any update with this?

---

<div class="post-metadata">

### Author: ![Walter\_Behmann](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/walter_behmann/32/117_2.png) [@Walter\_Behmann](https://community.cratedb.com/u/Walter_Behmann)
#### Post date: [March 19, 2021, 8:14am UTC](https://community.cratedb.com/t/snapshot-restore-to-a-different-server/364/5 "2021-03-19T08:14:02Z")

</div>

Hi Robert, thanks for bringing this up again. This should work for sure.

Looks like you already have a backup and copied that over. Can you please confirm that you also created the backup on the new cratedb instance!? Could add the readonly flag while creating the repository, to be fancy.

`CREATE repository snapshots type fs WITH (location=‘snapshots’, compress=true, readonly = true);`

**What else to consider?**  
Make sure you copy the backup data to the path specified in `-Cpath.repo=/data/backup` (either on command line or in `crate.yml`). In case you did not specify anything, just use the same directory structure as on the origin. The cratedb version has to match for a restore, but _first_ you have to be able to list the snapshots at all.

Hope this helps. Let me know in any case.

Best Regards,  
Walter
