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:
gogs backup. This creates
gogs-backup-[timestamp].zipfile containing all important Gogs data. You would need it if you wanted to move to the
1.0.xversion. Migrating from
gogsto any other version is impossible.
gitignore, label, license, locale, readmein
gogs/custom/conf, copy them to
gitea/data/. It contains issue attachments and avatars.
Rewrite '.ssh/authorized_keys' file.
Rewrite all update hook of repositories.
[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
[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
After successful migration from
gitea 1.0.x it is possible to upgrade to the recent
Simply download the file matching the destination platform from the downloads page
and replace the binary.
gitea/custom/templatesfolder, try moving the templates causing the errors away one by one. They may not be compatible with Gitea or an update.
Update the appropriate file from gitea/contrib with the right environment variables.
For distros with systemd:
sudo systemctl enable gitea
sudo systemctl disable gogs
For distros with SysVinit:
sudo rc-update add gitea
sudo rc-update del gogs