Codeberg/Documentation
42
199
Fork
You've already forked Documentation
161

how to migrate repositories from one gitea-instance to another #139

Merged
fnetX merged 3 commits from n0542344/Documentation:migrate-away into master 2021年06月12日 12:30:04 +02:00
Contributor
Copy link

This pull/merge request contains some documentation on how to migrate a repo you own to another gitea-instance. The example I used is locally hosted gitea instance on an Arch Linux machine (and I also included install infos for that).

Before merging this into main/master please consider: although it works for me this should be tested by someone else on their system (I only tried this on a single machine running Parabola GNU/Linux).

In addition: please consider that I tried to show the easiest way to install gitea but not the 'best' one, therefore I would not recommend this gitea installation for multi-user systems or in cases where other people are accessing this gitea instance.

I'd appreciate any feedback!

Best wishes, Alex

This pull/merge request contains some documentation on how to migrate a repo you own to another `gitea`-instance. The example I used is locally hosted `gitea` instance on an `Arch Linux` machine (and I also included install infos for that). Before merging this into main/master please consider: although it works for me this should be tested by someone else on their system (I only tried this on a single machine running [`Parabola GNU/Linux`](https://www.parabola.nu/)). In addition: please consider that I tried to show the easiest way to install `gitea` but not the 'best' one, therefore I would not recommend this `gitea` installation for multi-user systems or in cases where other people are accessing this `gitea` instance. I'd appreciate any feedback! Best wishes, Alex
Owner
Copy link

Hey there and thank you for this pull.

I think the migration documentation should not be too specific to the use case of moving away from Codeberg, especially for the Codeberg Documentation. I'm fine with having a general Gitea-to-Gitea migration guide that is generic and works with any Gitea instance. Mentioning that this works for Gitea → Codeberg, Codeberg → Gitea and of course Gitea → Gitea.
Essentially make sure to cover #35.

I also don't think that installation guides should be in the Codeberg documentation, as we won't be able to maintain this and make sure it's up to date, secure and working. If you think that the Gitea docs can be improved, please send patches there, but I don't think we should cover this on Codeberg.

Also have a look at #135. I'm fine if you link to somewhere for running your own Gitea instance in the migration guide, too. Also, in Codeberg/Community#463, we are seeing a roadmap of enabling Codeberg / Gitea login to a third-party service. I'd rather extend in this direction with a new Pull Request and explain users how they can have their self-hosted Gitea, but still allow sign-in via Codeberg and / or other Gitea instances (thinking of disroot etc).

Just my early thoughts so far, if you think we should review it as-is, just remove the WIP prefix and I'll have a closer look at the content 😉

Hey there and thank you for this pull. I think the migration documentation should not be too specific to the use case of moving away from Codeberg, especially for the Codeberg Documentation. I'm fine with having a general Gitea-to-Gitea migration guide that is generic and works with any Gitea instance. Mentioning that this works for Gitea → Codeberg, Codeberg → Gitea and of course Gitea → Gitea. Essentially make sure to cover #35. I also don't think that installation guides should be in the Codeberg documentation, as we won't be able to maintain this and make sure it's up to date, secure and working. If you think that the Gitea docs can be improved, please send patches there, but I don't think we should cover this on Codeberg. Also have a look at #135. I'm fine if you link to somewhere for running your own Gitea instance in the migration guide, too. Also, in Codeberg/Community#463, we are seeing a roadmap of enabling Codeberg / Gitea login to a third-party service. I'd rather extend in this direction with a new Pull Request and explain users how they can have their self-hosted Gitea, but still allow sign-in via Codeberg and / or other Gitea instances (thinking of disroot etc). Just my early thoughts so far, if you think we should review it as-is, just remove the WIP prefix and I'll have a closer look at the content 😉
Author
Contributor
Copy link

Wow, that was a fast reply - thanks for that!

I think the migration documentation should not be too specific to the use case of moving away from Codeberg, especially for the Codeberg Documentation.

If that's the official stand of Codeberg I'll accept that. But I think that this is an essential feature and one of the reasons why I'm currently planning to move my repos away from https://gitlab.com and to https://codeberg.org is the fact that I assume that the migration process is a lot more straight forward compared to https://git{hu,la}b.com (and therefore I don't need to be afraid of vendor lock-ins).

I'm fine with having a general Gitea-to-Gitea migration guide that is generic and works with any Gitea instance. Mentioning that this works for Gitea → Codeberg, Codeberg → Gitea and of course Gitea → Gitea.

OK, that sounds fine, I'll reword that section to tone it down.

Essentially make sure to cover #35.

Thanks for the pointer!

I also don't think that installation guides should be in the Codeberg documentation, as we won't be able to maintain this and make sure it's up to date, secure and working. If you think that the Gitea docs can be improved, please send patches there, but I don't think we should cover this on Codeberg.

Good point. I'll change it to be more general.

Also have a look at #135. I'm fine if you link to somewhere for running your own Gitea instance in the migration guide, too.

OK, I will.

Also, in Codeberg/Community#463, we are seeing a roadmap of enabling Codeberg / Gitea login to a third-party service. I'd rather extend in this direction with a new Pull Request and explain users how they can have their self-hosted Gitea, but still allow sign-in via Codeberg and / or other Gitea instances (thinking of disroot etc).

Interesting... I'll need to have a closer look at that.

I'll try to fix the issues tomorrow and remove the WIP then.

Wow, that was a fast reply - thanks for that! > I think the migration documentation should not be too specific to the use case of moving away from Codeberg, especially for the Codeberg Documentation. If that's the official stand of Codeberg I'll accept that. But I think that this is an essential feature and one of the reasons why I'm currently planning to move my repos away from https://gitlab.com and to https://codeberg.org is the fact that I assume that the migration process is a lot more straight forward compared to https://git{hu,la}b.com (and therefore I don't need to be afraid of vendor lock-ins). > I'm fine with having a general Gitea-to-Gitea migration guide that is generic and works with any Gitea instance. Mentioning that this works for Gitea → Codeberg, Codeberg → Gitea and of course Gitea → Gitea. OK, that sounds fine, I'll reword that section to tone it down. > Essentially make sure to cover #35. Thanks for the pointer! > I also don't think that installation guides should be in the Codeberg documentation, as we won't be able to maintain this and make sure it's up to date, secure and working. If you think that the Gitea docs can be improved, please send patches there, but I don't think we should cover this on Codeberg. Good point. I'll change it to be more general. > Also have a look at #135. I'm fine if you link to somewhere for running your own Gitea instance in the migration guide, too. OK, I will. > Also, in Codeberg/Community#463, we are seeing a roadmap of enabling Codeberg / Gitea login to a third-party service. I'd rather extend in this direction with a new Pull Request and explain users how they can have their self-hosted Gitea, but still allow sign-in via Codeberg and / or other Gitea instances (thinking of disroot etc). Interesting... I'll need to have a closer look at that. I'll try to fix the issues tomorrow and remove the WIP then.
Owner
Copy link

Thank you very much for picking this up, no need to hurry at all!

If that's the official stand of Codeberg I'll accept that.

We're community-maintained, you can get this into the docs if one (or maybe in a controversial situation two) people approve. I'd approve this, too, just wanted to point out that this sounds a bit off if we only cover this specific use-case (although your explanation makes sense to me).

Looking forward to seeing this deployed.

Thank you very much for picking this up, no need to hurry at all! > If that's the official stand of Codeberg I'll accept that. We're community-maintained, you can get this into the docs if one (or maybe in a controversial situation two) people approve. I'd approve this, too, just wanted to point out that this sounds a bit off if we only cover this specific use-case (although your explanation makes sense to me). Looking forward to seeing this deployed.
Author
Contributor
Copy link

I updated the docs as discussed (although I'm not sure if I fixed all the points from our discussion...)

I updated the docs as discussed (although I'm not sure if I fixed all the points from our discussion...)
n0542344 changed title from (削除) WIP: how-to migrate away from codeberg (削除ここまで) to how-to migrate away from codeberg 2021年06月11日 12:31:49 +02:00
n0542344 changed title from (削除) how-to migrate away from codeberg (削除ここまで) to how to migrate repositories from one gitea-instance to another 2021年06月11日 12:36:59 +02:00
fnetX left a comment
Copy link

Just a quick first look, added some thoughts. I might give it a second read-through.
If you don't want to apply my proposals, just comment, wait and let's see what others think.

Thank you.

Just a quick first look, added some thoughts. I might give it a second read-through. If you don't want to apply my proposals, just comment, wait and let's see what others think. Thank you.
@ -0,0 +5,4 @@
parent: AdvancedUsage
---
## migrating repositories
Owner
Copy link

Maybe uppercase?

Maybe uppercase?
Author
Contributor
Copy link

Sounds good to me

Sounds good to me
n0542344 marked this conversation as resolved
@ -0,0 +7,4 @@
## migrating repositories
Using a distributed version control software system (like git) allows you to easily keep in control of your data.
Owner
Copy link

When Git is not used as a command (i.e. git), we're usually spelling it uppercase in the docs.

When Git is not used as a command (i.e. `git`), we're usually spelling it uppercase in the docs.
Author
Contributor
Copy link

OK - I assume the same applies for Gitea (fixed both)

OK - I assume the same applies for Gitea (fixed both)
n0542344 marked this conversation as resolved
@ -0,0 +8,4 @@
## migrating repositories
Using a distributed version control software system (like git) allows you to easily keep in control of your data.
If you want to migrate your data to someplace else, just run `git clone </path/to/provider>/<user>/<project>.git` (or use the `Download Repository`-button on the main page) to get a local copy of the repository content
Owner
Copy link

It's a little confusing to me, although probably correct:

  • if you want to migrate to another Gitea host, this is not really necessary
  • only if you need your Git data and want to move away from Gitea at all, this is the behaviour

Please consider explicitly mentioning these cases for clarity, so that people know that migrating from Gitea to Gitea is very easy and seamless (just hit "Migrate" on the target instance), otherwise you have to rely on the Git copy.

It's a little confusing to me, although probably correct: - if you want to migrate to another Gitea host, this is not really necessary - only if you need your Git data and want to move away from Gitea at all, this is the behaviour Please consider explicitly mentioning these cases for clarity, so that people know that migrating from Gitea to Gitea is very easy and seamless (just hit "Migrate" on the target instance), otherwise you have to rely on the Git copy.
Author
Contributor
Copy link

True that... I restructured that.

True that... I restructured that.
n0542344 marked this conversation as resolved
@ -0,0 +13,4 @@
That way you can get a local copy of all the data in your repository.
When dealing with the metadata of your repository (e.g. issues, wiki, labels ...) some additional steps are necessary.
But `gitea` tries to make this as easy as possible.
Owner
Copy link

Same applies to Gitea, spelling it uppercase when not a command. This way, you don't have to use the backticks for every occurence.
Not sure if the latter looks better here, but I think consistency is preferable?

Same applies to Gitea, spelling it uppercase when not a command. This way, you don't have to use the backticks for every occurence. Not sure if the latter looks better here, but I think consistency is preferable?
Author
Contributor
Copy link

Agreed.

Agreed.
n0542344 marked this conversation as resolved
@ -0,0 +28,4 @@
### create access token
On your primary `gitea` instance at [Codeberg](https://codeberg.org) you need to go to `Profiles and Settings...` (on the top right corner), then to `Settings` (the option with the wrench symbol) and then to the `Applications`-option (in the middle of the top bar).
Owner
Copy link

When possible (i.e. not repo-specific), it might be a good idea to use the direct links to the location in the settings. I think, even if someone wants to move away from Codeberg or use this for some other Gitea host, it will make sure that one can have a look at where this setting should be located.
Due to localization it's possible that confusion arises where exactly a specific thing is located (although your explanations are already quite detailed).

When possible (i.e. not repo-specific), it might be a good idea to use the direct links to the location in the settings. I think, even if someone wants to move away from Codeberg or use this for some other Gitea host, it will make sure that one can have a look at where this setting should be located. Due to localization it's possible that confusion arises where exactly a specific thing is located (although your explanations are already quite detailed).
Author
Contributor
Copy link

Good idea - I updated that.

Good idea - I updated that.
n0542344 marked this conversation as resolved
@ -0,0 +35,4 @@
- this token is not stored anywhere so write it down immediately
- whoever is in possession of this token has almost limitless access to your account, so keep it safe
Owner
Copy link

Maybe mention that this token is best revoked after using it.

Maybe mention that this token is best revoked after using it.
Author
Contributor
Copy link

That's a great point, thanks!

That's a great point, thanks!
n0542344 marked this conversation as resolved
@ -0,0 +59,4 @@
[case](https://linuxhostsupport.com/blog/how-to-install-gitea-on-ubuntu-18-04/)
[of](https://websiteforstudents.com/how-to-install-gitea-on-ubuntu-20-04-18-04/)
[doubt](https://morioh.com/p/b86cbaa47e8c)
(none of them are endorsed by [Codeberg](https://codeberg.org)).
Owner
Copy link

Hehe, this sounds like we don't like to see people selfhost. I'd propose something along

(Codeberg does not guarantee for the correctness and actuality of these resources)

Hehe, this sounds like we don't like to see people selfhost. I'd propose something along > (Codeberg does not guarantee for the correctness and actuality of these resources)
Author
Contributor
Copy link

;)

;)
n0542344 marked this conversation as resolved
n0542344 changed title from (削除) how to migrate repositories from one gitea-instance to another (削除ここまで) to WIP: how to migrate repositories from one gitea-instance to another 2021年06月11日 14:22:29 +02:00
Author
Contributor
Copy link

Thanks for the feedback - I updated the points you mentioned accordingly.

Thanks for the feedback - I updated the points you mentioned accordingly.
n0542344 changed title from (削除) WIP: how to migrate repositories from one gitea-instance to another (削除ここまで) to how to migrate repositories from one gitea-instance to another 2021年06月11日 14:41:22 +02:00
fnetX left a comment
Copy link

Looks good to me, now.

Looks good to me, now.
Owner
Copy link

Heads up: I just shortened the article name to better reflect the article content + simply make it shorter (sharing etc).

Heads up: I just shortened the article name to better reflect the article content + simply make it shorter (sharing etc).
n0542344 deleted branch migrate-away 2021年06月22日 14:37:12 +02:00
Author
Contributor
Copy link

Awesome, thanks for the heads-up!

Awesome, thanks for the heads-up!
Sign in to join this conversation.
No reviewers
Labels
Clear labels
Codeberg Pages
Issues affecting Codeberg Pages
Documentation Usability
Issues related to using and reading docs.codeberg.org
Forgejo
Good First Issue! 👋
Kind: Bug
Kind: Documentation
Kind: Enhancement
Kind: Feature
Kind: Question
Kind: Security
Licensing
Part: Generator
This is related to the generation of the documentation, not to the content itself
Priority: High
The priority is high
Priority: Low
The priority is low
Priority: Medium
The priority is medium
Reviewed: Confirmed
Something has been confirmed
Reviewed: Duplicate
Something exists already
Reviewed: Invalid
Something was marked as invalid
Reviewed: Wontfix
Something won't be fixed
Status: Blocked
Status: Help wanted
Contributions are welcome!
Status: In progress
Work is in progress
Status: Needs feedback
Feedback is needed
Status: Ready for Review
Work is completed
Status: Review
Review is in progress / Reviewers wanted
Status: Stale
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Documentation!139
Reference in a new issue
Codeberg/Documentation
No description provided.
Delete branch "n0542344/Documentation:migrate-away"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?