# Daily Sync to INT environment?

**URL:** https://meta.discourse.org/t/daily-sync-to-int-environment/371777
**Category:** Support
**Created:** [June 26, 2025, 7:49am UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777 "2025-06-26T07:49:59Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [June 26, 2025, 7:49am UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/1 "2025-06-26T07:49:59Z")

</div>

Hi guys,

We have a INT and prod environment and it´s hard at the moment to keep track of all the differences.  
Is it possible somehow, to clone the PROD environment (topics / categories / settings / … ) to INT regulary and keep the INT individual stuff (hostname / ssl / email / … ) ?

Do I have to do that manually (store the individual stuff somewhere / clone / overwrite the individual stuff with int specifics / … ), or is there some discourse tool which I could use ?

Many thanks in advance and Greetings,

JP

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [June 26, 2025, 8:41am UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/2 "2025-06-26T08:41:41Z")

</div>

There is `rake site_settings:import`

See [Restoring forum to a new server - #2 by csmu](https://meta.discourse.org/t/restoring-forum-to-a-new-server/127357/2)

---

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [July 1, 2025, 1:45pm UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/3 "2025-07-01T13:45:40Z")

</div>

Hey guys,

It´s actually as simple as:

- Specify all stage-individual settings as hard-coded variables in app.yaml
- Copy backup from prod to int
- Restore it
- Rebuild the app

At least here it works, but here comes the next question: So the instance won´t pester the users, how can I deactivate all settings that could lead to an email to the users?

- Personal email settings
- Watched, tracked categories
- …

At the moment, I intentionally misconfigured the mail server, but someday when I want to test something with mails …

Any ideas?

Thanks and greetings,

WS

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [July 1, 2025, 1:49pm UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/4 "2025-07-01T13:49:30Z")

</div>

> [@Wurzelseppi](#):
>
> So the instance won’t pester the users, how can I deactivate all settings that could lead to an email to the users?

There is a `disable emails` site setting. I think it’s automatically activated when you restore a backup. For testing, you could enable e-mails for staff only.

---

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [July 2, 2025, 6:48am UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/5 "2025-07-02T06:48:54Z")

</div>

Hey @Moin (that´s a German term for good morning, I like that 🙂 )

thanks for your answer. I´m aware of that option, but I´m afraid as soon as I activate it there will be a flood of mails going out.

What did you mean by

> [@Moin](#):
>
> you could enable e-mails for staff only.

How would that be possible without reenabling the whole mail thing and don´t spam the users ?

The only thing I can imagine is to switch off the mail related user specific settings via rake console for every user.

Or

Would any of these

- Deactivate
- Stage
- Suspend
- Silence

do the trick ?

Cheers and thanks again,

WS

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [July 2, 2025, 7:00am UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/6 "2025-07-02T07:00:17Z")

</div>

> [@Wurzelseppi](#):
>
> How would that be possible without reenabling the whole mail thing and don´t spam the users ?

By choosing to `disable emails` for `non-staff`

 ![Screenshot_20250702_085648_Firefox](https://global.discourse-cdn.com/meta/original/4X/e/8/7/e872a1bcfd666ad96779fdae3d741746b1da719c.jpeg)

---

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [July 2, 2025, 7:10am UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/7 "2025-07-02T07:10:48Z")

</div>

> [@Moin](#):
>
> By choosing to `disable emails` for `non-staff`

Doh, that would be possible, yes 🙈

Thanks, I forgot completely, there is that “non-staff” option in that field ☹

Have a great day and thanks!

WS

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [July 2, 2025, 8:16am UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/8 "2025-07-02T08:16:54Z")

</div>

That option is [set automatically when you restore a backup](https://github.com/discourse/discourse/blob/e91024a22174514d7eda6b692c326bca73bbcb53/lib/backup_restore/restorer.rb#L134), so you don’t need to do anything extra.

---

<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: [August 1, 2025, 8:17am UTC](https://meta.discourse.org/t/daily-sync-to-int-environment/371777/9 "2025-08-01T08:17:00Z")

</div>

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