# Backup/Restore Java path in ignition.conf

**URL:** <https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000>\
**Category:** Ignition\
**Created:** [February 14, 2012, 11:36pm UTC](https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000 "2012-02-14T23:36:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [February 14, 2012, 11:36pm UTC](https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000/1 "2012-02-14T23:36:36Z")

</div>

I figured this one out on my own, but can we get the backup and restore routines to update the java path in ignition.conf? Just one more gotcha when your’re in a rush to get a gateway back up and running.

---

<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:** [February 14, 2012, 11:40pm UTC](https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000/2 "2012-02-14T23:40:55Z")

</div>

I would argue that including the java path would be at best something you had to opt into with some kind of partial/segmented backup and restore procedure.

As it is now, backup and restore is gateway and OS agnostic. Including the java path would certainly break that.

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [February 14, 2012, 11:43pm UTC](https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000/3 "2012-02-14T23:43:43Z")

</div>

I mean have the restore routine look at the environment variables, or at least try to figure out the proper directory for Java?

It isn’t complicated to go and change “Program Files (x86)\Java” to “Program Files\Java”, but it would be nice for Ignition to be able to do that without user intervention.

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [February 14, 2012, 11:53pm UTC](https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000/4 "2012-02-14T23:53:44Z")

</div>

If the backup is from 7.3.2 or later, there is a variable in the backed up ignition.conf that represents the Java path. It gets replaced with the actual Java path at the time of restoration before the gateway restarts. What version of Ignition did your backup come from?

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [February 15, 2012, 5:31am UTC](https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000/5 "2012-02-15T05:31:09Z")

</div>

It should be either 7.3.2 or 7.3.3.

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [February 15, 2012, 4:10pm UTC](https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000/6 "2012-02-15T16:10:33Z")

</div>

The Java path was supposed to be updated when you restored your backup. I’m not sure why it wasn’t in your case. Can you send a gateway backup to IA support? We can restore it here and figure out why the Java path was not updated properly.

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [February 15, 2012, 6:51pm UTC](https://forum.inductiveautomation.com/t/backup-restore-java-path-in-ignition-conf/4000/7 "2012-02-15T18:51:47Z")

</div>

Absolutely. Send me a pm with a ticket number.
