# Restore from JsonDB

**URL:** <https://community.openhab.org/t/restore-from-jsondb/141485>\
**Category:** Beginners\
**Tags:** openhab3\
**Created:** [November 27, 2022, 11:06pm UTC](https://community.openhab.org/t/restore-from-jsondb/141485 "2022-11-27T23:06:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beppe2810](https://community.openhab.org/user_avatar/community.openhab.org/beppe2810/32/95299_2.png) [@beppe2810](https://community.openhab.org/u/beppe2810)\
**Post date:** [November 27, 2022, 11:06pm UTC](https://community.openhab.org/t/restore-from-jsondb/141485/1 "2022-11-27T23:06:41Z")

</div>

Buongiorno a tutti,  
I made some updates to my OH3 inserting a new rule.  
By running it, probably due to an error almost all the system resources are occupied (linux PC). Through openhab-cli showlogs you see myriads of recurring strings.  
Since 5 previous versions of the configuration are stored in JsonDB I would like to restore the one before the error. I didn’t find any instructions on how to do it, can anyone help me?  
thank you

---

<div class="post-metadata">

**Author:** ![Wolfgang\_S](https://community.openhab.org/user_avatar/community.openhab.org/wolfgang_s/32/52719_2.png) [@Wolfgang\_S](https://community.openhab.org/u/Wolfgang_S)\
**Post date:** [November 28, 2022, 1:25pm UTC](https://community.openhab.org/t/restore-from-jsondb/141485/2 "2022-11-28T13:25:58Z")

</div>

> [@beppe2810](#):
>
> I didn’t find any instructions on how to do it

I have not been in the need to do this so my answer is based on theory only …

- shutdown the OH service
- make sure to create copies of the latest status of the files to not make it worse than the situation already is ( e.g. save a copy of the full history to keep the oldest once in case they would be shifted out by the actions that are to be done )
- identify the files you would like to get back from the backup folder
- copy them to the right folder ( one level up )
- make sure that the name of the files is correct ( rename them )
- start OH service again

---

<div class="post-metadata">

**Author:** ![bpmartin20](https://community.openhab.org/user_avatar/community.openhab.org/bpmartin20/32/118055_2.png) [@bpmartin20](https://community.openhab.org/u/bpmartin20)\
**Post date:** [September 27, 2023, 3:25pm UTC](https://community.openhab.org/t/restore-from-jsondb/141485/3 "2023-09-27T15:25:27Z")

</div>

Perhaps it would be good to clear the cache just before restarting OH. It certainly won’t hurt, except for taking a little longer to start up. The command is:

```auto
openhab-cli clean-cache

```
