gitea

Development moved to Codeberg


date: "2016-12-01T16:00:00+02:00" title: "Upgrade from Gogs" slug: "upgrade-from-gogs" weight: 10 toc: false draft: false menu: sidebar: parent: "upgrade" name: "From Gogs" weight: 10

identifier: "upgrade-from-gogs"

Upgrade from Gogs

Table of Contents

{{< toc >}}

Gogs, version 0.9.146 and older, can be easily migrated to Gitea.

There are some basic steps to follow. On a Linux system run as the Gogs user:

Change gogs specific information

FROM:

  [database]
  PATH = /home/:USER/gogs/data/:DATABASE.db
  [attachment]
  PATH = /home/:USER/gogs-data/attachments
  [picture]
  AVATAR_UPLOAD_PATH = /home/:USER/gogs-data/avatars
  [log]
  ROOT_PATH = /home/:USER/gogs/log

TO:

  [database]
  PATH = /home/:USER/gitea/data/:DATABASE.db
  [attachment]
  PATH = /home/:USER/gitea-data/attachments
  [picture]
  AVATAR_UPLOAD_PATH = /home/:USER/gitea-data/avatars
  [log]
  ROOT_PATH = /home/:USER/gitea/log

Upgrading to most recent gitea version

After successful migration from gogs to gitea 1.0.x, it is possible to upgrade gitea to a modern version in a two steps process.

Upgrade to gitea 1.6.4 first. Download the file matching the destination platform from the downloads page and replace the binary. Run Gitea at least once and check that everything works as expected.

Then repeat the procedure, but this time using the latest release.

Upgrading from a more recent version of Gogs

Upgrading from a more recent version of Gogs is also possible, but requires a bit more work. See #4286.

Troubleshooting

Add Gitea to startup on Unix

Update the appropriate file from gitea/contrib with the right environment variables.

For distros with systemd:

For distros with SysVinit: