# Bypass prompt to enter name when restoring backup with gwcmd

**URL:** <https://forum.inductiveautomation.com/t/bypass-prompt-to-enter-name-when-restoring-backup-with-gwcmd/63662>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [August 31, 2022, 11:17pm UTC](https://forum.inductiveautomation.com/t/bypass-prompt-to-enter-name-when-restoring-backup-with-gwcmd/63662 "2022-08-31T23:17:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlay](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@vlay](https://forum.inductiveautomation.com/u/vlay)\
**Post date:** [August 31, 2022, 11:17pm UTC](https://forum.inductiveautomation.com/t/bypass-prompt-to-enter-name-when-restoring-backup-with-gwcmd/63662/1 "2022-08-31T23:17:58Z")

</div>

As the title states I’m looking for a way to bypass the user prompt when attempting to restore a gateway backup using the gwcmd command line tool

---

<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:** [September 1, 2022, 4:43pm UTC](https://forum.inductiveautomation.com/t/bypass-prompt-to-enter-name-when-restoring-backup-with-gwcmd/63662/2 "2022-09-01T16:43:57Z")

</div>

If you pass the `-y` or `--promptyes` flag, you won’t be prompted for a gateway name.

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [September 1, 2022, 5:59pm UTC](https://forum.inductiveautomation.com/t/bypass-prompt-to-enter-name-when-restoring-backup-with-gwcmd/63662/3 "2022-09-01T17:59:06Z")

</div>

For Ignition 7.9.x, the `-y` flag might not be enough to avoid the prompt for gateway name. You can workaround it using the technique shown [on L416 here](https://github.com/thirdgen88/ignition-docker/blob/main/7.9/docker-entrypoint.sh#L416).

---

<div class="post-metadata">

**Author:** ![vlay](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@vlay](https://forum.inductiveautomation.com/u/vlay)\
**Post date:** [September 1, 2022, 6:06pm UTC](https://forum.inductiveautomation.com/t/bypass-prompt-to-enter-name-when-restoring-backup-with-gwcmd/63662/4 "2022-09-01T18:06:37Z")

</div>

Thanks Kevin! I actually came to close this one out since I found that exact same solution. Much appreciated!
