# History tags metadata

**URL:** <https://forum.inductiveautomation.com/t/history-tags-metadata/100137>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [December 22, 2024, 11:38am UTC](https://forum.inductiveautomation.com/t/history-tags-metadata/100137 "2024-12-22T11:38:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.cutino](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@e.cutino](https://forum.inductiveautomation.com/u/e.cutino)\
**Post date:** [December 22, 2024, 11:38am UTC](https://forum.inductiveautomation.com/t/history-tags-metadata/100137/1 "2024-12-22T11:38:44Z")

</div>

Hi, I'd like to know if there is a simple and "save" way to re-create all metadata (sqlth\_drv, sqlth\_te, ..., related records) for the existing history tag provider and ALL the tags with history enabled. I would like to avoid to manually open all tags, so looking for a "massive" way to do that.

I neeed that to deploy the ignition instance on a "new" DB, starting from scratch, avoiding to copy (backup/restore) existing metadata from previous DB.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 22, 2024, 2:45pm UTC](https://forum.inductiveautomation.com/t/history-tags-metadata/100137/2 "2024-12-22T14:45:00Z")

</div>

History metadata for the tag is stored with the tag. Only the history metadata for the history **data** is stored in the DB.

You don't need to do anything special. In your new gateway:

- Restore the gateway backup with everything **disabled**.

- Give the gateway a new name.

- In the existing database connection, point at the new gateway's empty DB, keeping the datasource name.

- Re-enable everything, starting with the database and tag history provider.

---

<div class="post-metadata">

**Author:** ![e.cutino](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@e.cutino](https://forum.inductiveautomation.com/u/e.cutino)\
**Post date:** [December 22, 2024, 5:25pm UTC](https://forum.inductiveautomation.com/t/history-tags-metadata/100137/3 "2024-12-22T17:25:40Z")

</div>

Clear. I'll do so. Thx
