# \[FEATURE\] Include gateway IP address and/or hostname in gwbk "backupinfo.xml" for information only

**URL:** <https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188>\
**Category:** Ignition\
**Created:** [August 1, 2023, 5:12am UTC](https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188 "2023-08-01T05:12:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 1, 2023, 5:12am UTC](https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188/1 "2023-08-01T05:12:24Z")

</div>

It would be incredibly useful to have the IP and/or hostname that a gwbk was taken from recorded in the backupinfo.xml included in the gwbk  
edit: **as information only**.

E.g.

```auto
<?xml version="1.0" encoding="UTF-8"?>
<gateway-backup>
	<version>8.1.22.2022110109</version>
	<timestamp>2023-04-26 09:16:07</timestamp>
	<backup-type>DATA_ONLY</backup-type>
	<ts>1682466367837</ts>
	<edition></edition>
	<gw-ip-address>10.10.10.10</gw-ip-address>
	<gw-hostname>THE_GOOD_GW</gw-hostname>
</gateway-backup>

```

This would be useful when you have the same gateway restored in multiple environments, prod, dev, test, etc. so that you know where it actually came from. Most of the time I'll change the system name, but sometimes in dev I'll forget. Then I have gwbks that could be from Prod or from Dev and no way to know if I haven't organised/renamed the files.

---

<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:** [August 1, 2023, 12:16pm UTC](https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188/2 "2023-08-01T12:16:41Z")

</div>

Strongly disagree. You **should** be able to drop your production backup into a dev environment and it **work with the dev resources** without changes. If your dev environment can't do that, it isn't close enough to production to be a valid development platform, IMNSHO.

If you cannot arrange for your dev environment to mimic the IP addresses, then use predicable hostnames throughout, combined with a DNS system that understands, or just use /etc/hosts files on your gateways.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 1, 2023, 12:21pm UTC](https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188/3 "2023-08-01T12:21:57Z")

</div>

I think you misunderstood what I meant. Currently, if you take a backup from two servers running the same ignition gateway project, there's no way to tell from the backup which server you backed them up from. If the ip/host was added into the backup info XML (as information only), then it would be obvious. This would in no way affect the restore procedure, it would merely be there as extra info to know from where you backed it up from

---

<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:** [August 1, 2023, 12:23pm UTC](https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188/4 "2023-08-01T12:23:21Z")

</div>

You mean, purely informational? Perhaps.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 1, 2023, 12:25pm UTC](https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188/5 "2023-08-01T12:25:05Z")

</div>

I've edited the title and OP to make that bit more clear

---

<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:** [August 1, 2023, 2:46pm UTC](https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188/6 "2023-08-01T14:46:38Z")

</div>

If you use [Kindling](https://forum.inductiveautomation.com/t/kindling-a-collection-of-tools-to-help-with-ignition/54689) it's pretty easy to extract the system name from the IDB:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9d39028eca66ada3830a62b2dfe328f3826f3c87.png)

This _sounds_ reasonable, but what about systems with many IP addresses? The hostname, according to whom?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 1, 2023, 7:16pm UTC](https://forum.inductiveautomation.com/t/feature-include-gateway-ip-address-and-or-hostname-in-gwbk-backupinfo-xml-for-information-only/77188/7 "2023-08-01T19:16:04Z")

</div>

System name is the ignition gateway name though, right? That's already included in the default gwbk name.  
I guess if it has multiple ips, then they should all be listed in there. Hostname according to the gateway's OS itself
