# Replacing server: do i need a matching name to retain tag history DB?

**URL:** <https://forum.inductiveautomation.com/t/replacing-server-do-i-need-a-matching-name-to-retain-tag-history-db/44238>\
**Category:** Ignition\
**Created:** [March 8, 2021, 7:11pm UTC](https://forum.inductiveautomation.com/t/replacing-server-do-i-need-a-matching-name-to-retain-tag-history-db/44238 "2021-03-08T19:11:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [March 8, 2021, 7:11pm UTC](https://forum.inductiveautomation.com/t/replacing-server-do-i-need-a-matching-name-to-retain-tag-history-db/44238/1 "2021-03-08T19:11:59Z")

</div>

I’m in the process of building a replacement for an existing Ignition gateway. I’m not doing in-place upgrade to get rid of cruft that has built up on the system and to bump to a newer release of the Linux distro.

I initially restored a backup in disabled mode, and was enabling components like DB connections one at a time. I wanted to test as much as possible before shutting off the old server and pushing this into use.

However, when I did the initial restore, I also changed the gateway name from `blah-ignition1` to `blah-ignition2`. Just now, I had the realization that historical tags appear to be stored relative to the server name they came from.

Will this server with a new name be able to seamlessly access and keep adding to history that was stored by the server with the old name, or do they need to match?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 8, 2021, 7:46pm UTC](https://forum.inductiveautomation.com/t/replacing-server-do-i-need-a-matching-name-to-retain-tag-history-db/44238/2 "2021-03-08T19:46:04Z")

</div>

If you leave it at the same name until it’s enabled, you can then rename and the tag historian will update the stored name in `sqlth_drv` automatically. You could also change the name (while disabled) and update the records in `sqlth_drv` manually; they should figure themselves out once you start.

---

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [March 8, 2021, 8:01pm UTC](https://forum.inductiveautomation.com/t/replacing-server-do-i-need-a-matching-name-to-retain-tag-history-db/44238/3 "2021-03-08T20:01:09Z")

</div>

So, during a time period when both servers are disabled and I’m actively switching between servers, do something like:

```auto
UPDATE sqlth_drv SET name = 'blah-ignition2' WHERE name = 'blah-ignition1;

```

Sounds simple enough. 🤞

Can you think of any other gotchas like this around renaming a gateway that might bite me in the butt?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 8, 2021, 9:48pm UTC](https://forum.inductiveautomation.com/t/replacing-server-do-i-need-a-matching-name-to-retain-tag-history-db/44238/4 "2021-03-08T21:48:32Z")

</div>

Nothing that readily occurs to me. GAN and tag historian are the two main things that care about gateway names.
