# Gateway backup is huge

**URL:** <https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517>\
**Category:** Ignition\
**Created:** [September 25, 2015, 9:11am UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517 "2015-09-25T09:11:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [September 25, 2015, 9:11am UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/1 "2015-09-25T09:11:24Z")

</div>

Hello,  
For some reason our Ignition Gateway backups are huge.  
For example 12.08.2015 it was 120mb, 18.08.2015 is 420mb and today it is 1100mb.  
And it takes a lot of time to make this backup.  
Also we were unable to restore any of those backups on other server with Ignition.  
Project backup size is 7,5mb.  
Ignition version is 7.7.5.

Other our Ignition servers gateway backups size is much less. For example our oldest project is more than 3 years and really big. It’s gateway backup size is only 42mb.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [September 25, 2015, 5:35pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/2 "2015-09-25T17:35:32Z")

</div>

Hi,

This is a known issue we are working on. It clearly shouldn’t be that big. Until we have it solved, there is a procedure to shrink the size but it’s a bit involved. I’ll look into making a tool for it so it can be done on-premise.

---

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [September 28, 2015, 6:40am UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/3 "2015-09-28T06:40:41Z")

</div>

Good to know.  
Maybe we can upgrade our Ignition version or downgrade for a moment until this problem is solved?  
How can I obtain this tool?  
Will the backap be restorable after use of this tool?  
Because at the moment it is not restorable and it is a big problem.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [September 28, 2015, 4:55pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/4 "2015-09-28T16:55:12Z")

</div>

We’re working on the tool now. It won’t work on the gwbk, but from a data/db folder itself.

If you need to use it on a gwbk you could just unzip it. When we have it done we can send it to you, and maybe we can walk you through it on the phone if you’re available

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [September 30, 2015, 10:12pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/5 "2015-09-30T22:12:42Z")

</div>

Here is a link to the zip of the tool. Unzip and you'll find a readme with usage instructions and a jar to run. As always, make sure you create a full Gateway Backup before using.

Note: This isn't a general optimization tool, but should help those who have seen internal database sizes and backups grow abnormally large in 7.7.

Please let us know how it works for you.

[ignition-db-shrink-tool.zip](https://forum.inductiveautomation.com/uploads/short-url/9gTUqRmHVh93otIO7G2P27d9i9Z.zip) (4.1 MB)

---

<div class="post-metadata">

**Author:** ![tebright1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tebright1/32/87405_2.png) [@tebright1](https://forum.inductiveautomation.com/u/tebright1)\
**Post date:** [October 1, 2015, 12:39pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/6 "2015-10-01T12:39:29Z")

</div>

What is causing the increase? I had the same issue. I was using a SQL Db and switched to Internal Tags. In the process of doing that, I updated Ignition. My gwbk went from under 300 mb to over 1.8 gigs!

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 1, 2015, 3:16pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/7 "2015-10-01T15:16:09Z")

</div>

Pretty sure switching tags didn’t have anything to do with it - it was the upgrade. We updated the version of the internal database that stores Ignition’s settings and this new version has a bug with storing BLOBs, which we use to store the projects.

We’re working with the author of that internal db to get the problem solved, in the meantime, the shrink tool is the workaround we’ve got.

---

<div class="post-metadata">

**Author:** ![jstrauch](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jstrauch](https://forum.inductiveautomation.com/u/jstrauch)\
**Post date:** [October 19, 2015, 9:47pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/8 "2015-10-19T21:47:33Z")

</div>

This issue about it being a problem with the projects would explain why our Development server is also experiencing this issue. It went from around 20MB to over 800MB with the dev work being done on it lately. The big issue we noticed is that with the internal DB settings of taking a backup every 2 minutes it slows down the system considerably. Hopefully this gets fixed soon. Also does this mean 7.8 is affected with the same bug?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 19, 2015, 9:56pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/9 "2015-10-19T21:56:28Z")

</div>

Yes, 7.8 has the same issue unfortunately. One thing that can help is to simply turn off the autobackups entirely. They aren’t really needed, especially if you’ve opted into the scheduled backup system so you can control when backups are made.

To disable auto backups, shut down the gateway, edit your data/gateway.xml file, and set the “localdb.autobackup.count” property to 0.

---

<div class="post-metadata">

**Author:** ![jstrauch](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jstrauch](https://forum.inductiveautomation.com/u/jstrauch)\
**Post date:** [October 27, 2015, 5:58pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/10 "2015-10-27T17:58:32Z")

</div>

We have ran this tool on our development box to help with the issue there, however we keep getting this error message popping up and the tool doesn’t run correctly. Any ideas on what might be causing it?

Ignition Version 7.7.5

SQL Server 2012

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3d0beb82f13a3ecbf0e77e8d34e971c48ba0938d.PNG)

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [October 29, 2015, 5:53pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/11 "2015-10-29T17:53:28Z")

</div>

Sorry the previous version didn't work for you. I've made an adjustment to hold larger resources, so give the attached tool a try and let us know how it goes.

[Ignition DB Shrink Toolv1.1.zip](https://forum.inductiveautomation.com/uploads/short-url/kK4oCx9y3ulw3R8yU3wqA9rQgcf.zip) (4.1 MB)

---

<div class="post-metadata">

**Author:** ![tebright1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tebright1/32/87405_2.png) [@tebright1](https://forum.inductiveautomation.com/u/tebright1)\
**Post date:** [November 6, 2015, 4:27pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/12 "2015-11-06T16:27:46Z")

</div>

We getting closer to a fix?

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [November 6, 2015, 6:22pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/13 "2015-11-06T18:22:06Z")

</div>

A fix was committed for the next version of the internal database, but has not been released yet. We don’t have a timeline on when the release will be available to us, but it will be tested and integrated into Ignition as soon as we can. I’ll try to keep this thread posted when I know more.

---

<div class="post-metadata">

**Author:** ![tebright1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tebright1/32/87405_2.png) [@tebright1](https://forum.inductiveautomation.com/u/tebright1)\
**Post date:** [November 6, 2015, 6:23pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/14 "2015-11-06T18:23:51Z")

</div>

Great! 🙂

---

<div class="post-metadata">

**Author:** ![jstrauch](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jstrauch](https://forum.inductiveautomation.com/u/jstrauch)\
**Post date:** [November 13, 2015, 2:44pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/15 "2015-11-13T14:44:40Z")

</div>

Perry, I tried the new version that you linked to and unfortunately I get the same error message. Our DEV server is functional but runs slows still. We are also able to take backups of the gateway but now they are over 1.2GB in size. Looking forward to the new internal DB version.

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [November 17, 2015, 12:03am UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/16 "2015-11-17T00:03:50Z")

</div>

jstrauch,

Sorry to hear you didn’t have any luck with that version. I recommend getting in touch with support. They have some experience troubleshooting some of the issues and if nothing else can help us collect more information on ways to improve the tool to improve it.

---

<div class="post-metadata">

**Author:** ![r.lebohec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/r.lebohec/32/3704_2.png) [@r.lebohec](https://forum.inductiveautomation.com/u/r.lebohec)\
**Post date:** [December 11, 2015, 1:16pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/17 "2015-12-11T13:16:52Z")

</div>

Hi,

We use Ignition-db-shrinktool.jar to compress our db and it resolve the problem.  
Recently, we upgrade Ignition to 7.7.6 (b2015120217) and now the shrink fail, i don’t understand why.  
Is it still necessary to use shrink tool with this new version ?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 11, 2015, 1:53pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/18 "2015-12-11T13:53:26Z")

</div>

I think the gateway must be stopped while the shrink tool is run.

---

<div class="post-metadata">

**Author:** ![r.lebohec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/r.lebohec/32/3704_2.png) [@r.lebohec](https://forum.inductiveautomation.com/u/r.lebohec)\
**Post date:** [December 11, 2015, 1:54pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/19 "2015-12-11T13:54:29Z")

</div>

It was

---

<div class="post-metadata">

**Author:** ![jstrauch](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jstrauch](https://forum.inductiveautomation.com/u/jstrauch)\
**Post date:** [December 11, 2015, 2:19pm UTC](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517/20 "2015-12-11T14:19:28Z")

</div>

According to the Change Log it doesn’t look like 7.7.6 has the new fix in place. What version of Java are you using? I know we tested out version 8 update 66 and that caused issues with the gateway so we are still running update 51 for now.

[Next page](https://forum.inductiveautomation.com/t/gateway-backup-is-huge/10517.md?page=2)
