# Commandline restore specific site in multi-site configuration

**URL:** https://meta.discourse.org/t/commandline-restore-specific-site-in-multi-site-configuration/77830
**Category:** Support
**Created:** [1월 12, 2018, 1:22오후 UTC](https://meta.discourse.org/t/commandline-restore-specific-site-in-multi-site-configuration/77830 "2018-01-12T13:22:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![erseco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erseco/32/87424_2.png) [@erseco](https://meta.discourse.org/u/erseco)
#### Post date: [1월 12, 2018, 1:22오후 UTC](https://meta.discourse.org/t/commandline-restore-specific-site-in-multi-site-configuration/77830/1 "2018-01-12T13:22:13Z")

</div>

Hi, I just deployed a multi-site discourse and now I want to programmatically migrate all my discourse sites (almost 20) to the new server.

Is possible to specify the _site/database_ when calling `./launcher enter app` or `discourse restore filename.tar.gz`?

Thank you in advance!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [1월 12, 2018, 1:47오후 UTC](https://meta.discourse.org/t/commandline-restore-specific-site-in-multi-site-configuration/77830/2 "2018-01-12T13:47:56Z")

</div>

Yes you need to pass the database name when you call the script or enter the console. Search here for rails\_db in other multisite topics.

---

<div class="post-metadata">

### Author: ![erseco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erseco/32/87424_2.png) [@erseco](https://meta.discourse.org/u/erseco)
#### Post date: [1월 12, 2018, 2:00오후 UTC](https://meta.discourse.org/t/commandline-restore-specific-site-in-multi-site-configuration/77830/3 "2018-01-12T14:00:52Z")

</div>

Perfect, I can use `RAILS_DB=dbname restore filename.tar.gz` and works like a charm!

Thank you!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [3월 28, 2020, 12:49오전 UTC](https://meta.discourse.org/t/commandline-restore-specific-site-in-multi-site-configuration/77830/4 "2020-03-28T00:49:52Z")

</div>



---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [3월 28, 2020, 5:01오전 UTC](https://meta.discourse.org/t/commandline-restore-specific-site-in-multi-site-configuration/77830/5 "2020-03-28T05:01:16Z")

</div>


