Update Gitea

Introduction

Fortunately, Gitea is a very lightweight service that can be easily updated with a simple pkg update. It is still important to keep the package sources adjusted to latest so that you really get the latest packages. In my article series a large SQL database was omitted and the SQLIte database /var/db/gitea/gitea.db is conveniently included in the gitea dump.

Important: Check the Changelog before, to be prepared for certain update steps!
Especially "BREAKING" is relevant and "FEATURES" interesting.

Last updated:

  • 05.01.2024: Various minor adjustments
  • 31.07.2023: Initial document

Backup

Before updating, it is always advisable to create a proper backup.
On the Gitea website is well described how this is done (also a restore).

  • Login via SSH ssh USERNAME@GITEAIP or ssh USERNAME@GITEAHOSTNAME to gain root privileges with su,
  • su - git -c "gitea dump -c /var/db/gitea/conf/app.ini" to create the dump.

The backup is then placed in /usr/local/git/ with the filename gitea-dump-UNIXTIME.zip 1.

Update

Continue with pkg upgrade and afterwards a service gitea start to start the service again.

Voilá

Back to main article