# Weird question about gateway backup timing

**URL:** <https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 27, 2025, 5:11pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740 "2025-10-27T17:11:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [October 27, 2025, 5:11pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740/1 "2025-10-27T17:11:52Z")

</div>

Is there some reason that a gateway backup run from a windows service using gwcmd would take 3-5x longer than the same backup run from userspace? (this is also somewhat nondeterministic even on the machines where it happens)

Moreover, why do gateway backups of the same gateway take extremely different times when run at various times? (The gateway load is basically constant time to time)

EDIT: the issue was pebcac, gwcmd asking for permission to overwrite a file and just not running til that file got deleted

---

<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:** [October 27, 2025, 5:17pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740/2 "2025-10-27T17:17:15Z")

</div>

3-5x longer as a unitless measurement isn't very helpful.  
300ms becoming 1500ms is meaningless and could just be GC noise or vagaries of the filesystem.  
3 seconds becoming 15 seconds is theoretically more concerning, but if you're not actually seeing a problem, I wouldn't worry.  
30 seconds becoming 2.5 minutes _could_ be problematic/alarming, but not all "constant CPU loads" are created equal.

The most likely explanation is something holding a lock on a vital thread internally by random chance, which would explain why you can't nail exactly why it's happening. I'm assuming this is 8.1, so the SQLite internal DB is fully in play.

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [October 27, 2025, 5:18pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740/3 "2025-10-27T17:18:45Z")

</div>

It’s 8.1, yes.

1-2 min becoming 5-10.

(The 1-2 minute baseline doesn’t seem that surprising, the AV on the system starts churning whenever we trigger a backup and it’s a ~200 MB gateway)

---

<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:** [October 27, 2025, 5:20pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740/4 "2025-10-27T17:20:38Z")

</div>

If you really want to find out, then you'd have to add instrumentation or otherwise programatically collect thread dumps during that 5-10 minute process.

---

<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:** [October 27, 2025, 5:42pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740/5 "2025-10-27T17:42:40Z")

</div>

> [@Leor\_Fishman](#):
>
> the AV on the system starts churning whenever we trigger a backup

That's just terrible. Get a competent OS. ☹

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [October 27, 2025, 5:43pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740/6 "2025-10-27T17:43:37Z")

</div>

~~it has been [0] days since Phil has asked an industrial user to switch OSes~~

---

<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:** [October 27, 2025, 5:49pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740/7 "2025-10-27T17:49:06Z")

</div>

> [@Leor\_Fishman](#):
>
> been [0] ~~days~~ _hours_

Fixed it for you. 😏

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [October 27, 2025, 6:18pm UTC](https://forum.inductiveautomation.com/t/weird-question-about-gateway-backup-timing/111740/8 "2025-10-27T18:18:52Z")

</div>

…i fixed the issue…  
protip, if youre running a script from a windows service, _add -y to your gwcmd calls_
