# Archiving database tables

**URL:** <https://forum.inductiveautomation.com/t/archiving-database-tables/11516>\
**Category:** Archived Topics\
**Created:** [April 15, 2016, 6:12pm UTC](https://forum.inductiveautomation.com/t/archiving-database-tables/11516 "2016-04-15T18:12:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sammy5](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@Sammy5](https://forum.inductiveautomation.com/u/Sammy5)\
**Post date:** [April 15, 2016, 6:12pm UTC](https://forum.inductiveautomation.com/t/archiving-database-tables/11516/1 "2016-04-15T18:12:40Z")

</div>

Can anyone recommend their procedure for archiving historical tables such as “sqlt\_data\_1\_2011\_01” for example? I can do mysqldump to file without issue, its removing the tables that I am concerned about. I am unable to open the current db in MySQL workbench to do a reverse engineer due to number of objects. On test databases I can see how current month is connected, and all other tables seem to be just archived.

So I would like to know how others are handling the archiving of their database. Ideally I want to just backup the individual table and remove it entirely. Should the entire table be removed or just the data within and keep the table and structure?

---

<div class="post-metadata">

**Author:** ![ccarruthers](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@ccarruthers](https://forum.inductiveautomation.com/u/ccarruthers)\
**Post date:** [May 10, 2016, 9:45pm UTC](https://forum.inductiveautomation.com/t/archiving-database-tables/11516/2 "2016-05-10T21:45:32Z")

</div>

Great question. I hope you get a response.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [October 25, 2016, 10:20am UTC](https://forum.inductiveautomation.com/t/archiving-database-tables/11516/3 "2016-10-25T10:20:14Z")

</div>

Hi Sammy5,

You can indeed just backup the individual table and remove it. You will also however have to remove the reference to the table in the sqlth\_partitions table - you should just remove the entire record pointing to the table name.

Obviously by removing the table Ignition will no longer be able to access its data. The data itself is in a format used by Ignition. To use it elsewhere you will have to join the table with the sqlth\_te table to get the names of the tags. The time stamp field is the number of milliseconds since 00:00:00 on 01/01/1970, so you’ll have to convert it to make it human readable. See [this manual page](https://docs.inductiveautomation.com:8443/display/DOC79/Data+Partitioning+and+Pruning) for help with this.
