# Restore help isn't valid for docker image

**URL:** <https://forum.gitea.com/t/restore-help-isnt-valid-for-docker-image/4753>\
**Category:** Install/Maintain/Configure\
**Created:** [February 21, 2022, 9:13am UTC](https://forum.gitea.com/t/restore-help-isnt-valid-for-docker-image/4753 "2022-02-21T09:13:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OCram85](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/ocram85/32/4947_2.png) [@OCram85](https://forum.gitea.com/u/OCram85)\
**Post date:** [February 21, 2022, 9:13am UTC](https://forum.gitea.com/t/restore-help-isnt-valid-for-docker-image/4753/1 "2022-02-21T09:13:14Z")

</div>

While the backup instructions for docker based instances are perfect, the [restore help](https://docs.gitea.io/en-us/backup-and-restore/#restore-command-restore) seems to lead into path errors.

The mentioned paths doesn’t match the default used ones in the docker image:

```auto
mv data/conf/app.ini /etc/gitea/conf/app.ini
mv data/* /var/lib/gitea/data/
mv log/* /var/lib/gitea/log/
mv repos/* /var/lib/gitea/repositories/
chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea

```

I suggest the following changes for restore files within a docker container:

```auto
mv data/* /data/gitea
mv repos/* /data/git/repositories/
chown -R git:git /data

```

Details:

- No need to move the app.ini indivdually. It’s already present in the data dir
- same applies to the log folder
- default user in the gitea container is git:git (1000:1000)
- change ownership for complete data dir. This container `/data/gitea` and `/data/git` with the repositories.

* * *

📍 Pull Request added: [adds help for docker restore in docs by OCram85 · Pull Request #18844 · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/pull/18844)
