# Ignition Backup and Restore

**URL:** <https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [January 16, 2024, 9:24am UTC](https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309 "2024-01-16T09:24:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ifeoluwashola\_Adaral](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@Ifeoluwashola\_Adaral](https://forum.inductiveautomation.com/u/Ifeoluwashola_Adaral)\
**Post date:** [January 16, 2024, 9:24am UTC](https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309/1 "2024-01-16T09:24:33Z")

</div>

I deployed ignition using compose file, but I want to add logging and to it, and most importantly backup and restore its data

---

<div class="post-metadata">

**Author:** ![Ben\_Eklund](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ben_eklund/32/40758_2.png) [@Ben\_Eklund](https://forum.inductiveautomation.com/u/Ben_Eklund)\
**Post date:** [January 26, 2024, 10:17pm UTC](https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309/2 "2024-01-26T22:17:25Z")

</div>

Hi Ifeoluwashola\_Adaral,

Here is our documentation regarding Docker Images. It includes sections on logging, and methods for backup and restore, specifically under "Logging Settings" and "Automating the Restore of a Gateway Backup".

[https://docs.inductiveautomation.com/display/DOC81/Docker+Image](https://docs.inductiveautomation.com/display/DOC81/Docker+Image)

---

<div class="post-metadata">

**Author:** ![Ifeoluwashola\_Adaral](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@Ifeoluwashola\_Adaral](https://forum.inductiveautomation.com/u/Ifeoluwashola_Adaral)\
**Post date:** [January 29, 2024, 11:17am UTC](https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309/3 "2024-01-29T11:17:33Z")

</div>

Thanks Ben\_Eklund  
Just in case you can also assist with this. I set scheduled backup but I'm getting permission denied error.

 ![Screenshot (89)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/8/68a9938d2c8e8499f58957ee1dd8c61928e895e6.png)

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [January 29, 2024, 11:32am UTC](https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309/4 "2024-01-29T11:32:02Z")

</div>

Show the filepath you are trying to write to. Ensure the **gateway service** has permission to write there.

---

<div class="post-metadata">

**Author:** ![Ifeoluwashola\_Adaral](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@Ifeoluwashola\_Adaral](https://forum.inductiveautomation.com/u/Ifeoluwashola_Adaral)\
**Post date:** [January 29, 2024, 11:54am UTC](https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309/5 "2024-01-29T11:54:47Z")

</div>

Oh, thanks  
I'll check the permission and resolve it.

---

<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:** [January 29, 2024, 2:18pm UTC](https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309/6 "2024-01-29T14:18:24Z")

</div>

It looks like you've configured the target for your scheduled backups as `/var/backups`. Unless you've got a bind-mount or something that links back to your host (where that path is writable), you'll get _Permission denied_. In the container image, only `/usr/local/bin/ignition` (and subfolders) are writable by the `ignition` user (which is the default user in the container, UID/GID of `2003`).

---

<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:** [January 29, 2024, 2:21pm UTC](https://forum.inductiveautomation.com/t/ignition-backup-and-restore/84309/7 "2024-01-29T14:21:36Z")

</div>

Also, keep in mind that it is difficult for folks to help when you start multiple threads for the same issue, as I think has happened with your other replies [here](https://forum.inductiveautomation.com/t/docker-gateway-restore-with-compose/50919/19).
