Restore help isn't valid for docker image

While the backup instructions for docker based instances are perfect, the restore help seems to lead into path errors.

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

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:

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


  • 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.

:round_pushpin: Pull Request added: adds help for docker restore in docs by OCram85 · Pull Request #18844 · go-gitea/gitea · GitHub

1 Like