-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
How can i switch from gogs to gitea with less pain? #3558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You want this: Upgrade from Gogs |
Thank you very much! |
@charlesreid1 The manual is a bit outdated:
|
@vityafx What is your gitea version? |
$ ./gitea-bin --version
Gitea version 1.4.0+rc1-12-g423c642 built with: bindata, sqlite |
@vityafx I think you should try the |
@appleboy why so old? |
You should migrate gogs to gitea v1.0 and then upgrade gitea from v1.0 to v1.4 |
@appleboy this also should be mentioned in the docs then. |
@appleboy It works so, confirmed: migrating from gogs to 1.0 gitea and then upgrading the gitea from 1.0 to 1.4. Thanks a lot. |
@vityafx Nice, we should update the document. |
@vityafx which version do you download? |
Documentation file needing updating is here: from-gogs.en-us.md, also in French and Chinese (dir). @vityafx the first two instructions are probably the ones that need updating. Did gogs still generate All: Does the second instruction need changing, or does it actually describe the process that was needed (downgrading to version 1.0, then back up to 1.4)?
|
@appleboy 1.0.3 version :) Also, I still don't get what is |
@charlesreid1 I know neither french nor chinese :-D |
@vityafx Can you help to update the document? Just only update English document. |
@appleboy Yes, I can. But I can only try doing that in english. |
@vityafx Great. Thank you. Waiting for your PR. |
It would seem that gogs backup commands/options are not particularly well-documented. Not sure if this has been addressed but it doesn't look like it. As far as how the backup (zip file) is used, that zip file will contain a copy of all checked out repositories, as well as a database of data (mysql or sqlite format, in a .db file). That's the file you specify in the config file line:
|
Some useful info about this topic at this issue on the same topic: #3487 |
Review my PR please. I think I added everything what is necessary. |
You made your PR against the master branch of your own repo - you should make it against the master branch of the gitea repo! |
Oh, lol, that |
Great. I was able to successfully migrate with these explanations. However, the "Upgrading to most recent gitea version" section was inserted at the wrong place (the config changes below belong to the section above). Apart from that, I am not sure why one is supposed to first start gitea once and only then adapt the repositories path and the config. I might create another pull request if somebody can clear that up. I am using Docker. The paths and the procedure for the migration with Docker are slightly different, but I think it's not absolutely necessary to explain it in more detail, this could be left "as an exercise for the reader" :) EDIT: I'm facing problems similar to gogs/gogs#1916. The default git hooks try to invoke the old gogs executable. Resyncing the hooks didn't help. There are two files in the |
what version of gogs where you on @vityafx ? |
I am on 1.4 now, why? |
@steliosmilidonis and others looking to migrate from gogs to gitea in 2018 - I posted some notes at #4286 about my successful migration from the latest gogs. |
- Move "Change gogs specific information" FROM/TO steps up to just beneath matching section header, adjust indention and explicitly specify syntax of code sample to provide highlighting - Adjust header levels to match what appears to be the intended level, remove trailing decoration (see below) - Move "Upgrading to most recent ..." section down, remove decoration (section header formatting likely covers this well enough already) refs go-gitea#4286, go-gitea#3558
- Adjust indention and explicitly specify syntax of code sample to provide highlighting - Adjust header levels to match what appears to be the intended level, remove trailing decoration since section header formatting likely covers this well enough already refs go-gitea#4286, go-gitea#3558
* Update "Upgrade from Gogs" en-us doc - Move "Change gogs specific information" FROM/TO steps up to just beneath matching section header, adjust indention and explicitly specify syntax of code sample to provide highlighting - Adjust header levels to match what appears to be the intended level, remove trailing decoration (see below) - Move "Upgrading to most recent ..." section down, remove decoration (section header formatting likely covers this well enough already) refs #4286, #3558 * Update "Upgrade from Gogs" fr-fr doc - Adjust indention and explicitly specify syntax of code sample to provide highlighting - Adjust header levels to match what appears to be the intended level, remove trailing decoration since section header formatting likely covers this well enough already refs #4286, #3558
Is there any manual for moving the git server from gogs to gitea? I'd like to save all my data which was created in gogs before: users, repoitories, settings, everything.
The text was updated successfully, but these errors were encountered: