Skip to content
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

How to migrate data between Gitea servers? #30507

Open
springeye opened this issue Apr 16, 2024 · 4 comments
Open

How to migrate data between Gitea servers? #30507

springeye opened this issue Apr 16, 2024 · 4 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@springeye
Copy link

springeye commented Apr 16, 2024

Feature Description

My old server is Centosos, and my new server is Docker Gitea,
I have tried many methods, but it took me a few days without success. Either the Docker container cannot start after the migration is completed, or it cannot be accessed after successful startup without any errors
I also checked a lot of fragmented information, such as #7858, and it seems that no one is useful either

Can provide a command to migrate?? such as gitea -- migrate newsever.com newadmintoken

Screenshots

No response

@springeye springeye added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Apr 16, 2024
@99rgosse
Copy link
Contributor

Have you tried using the gitea backup and restore command ?
https://docs.gitea.com/administration/backup-and-restore#using-docker-dump

In docker, you just have to copy the data from the docker volume to your new system and put it in the same docker volume

It works flawlessly everyday for me, I recreate the running full server on a spare one.

@springeye
Copy link
Author

Have you tried using the gitea backup and restore command ? https://docs.gitea.com/administration/backup-and-restore#using-docker-dump

In docker, you just have to copy the data from the docker volume to your new system and put it in the same docker volume

It works flawlessly everyday for me, I recreate the running full server on a spare one.

Yes, I have tried before, but the first few attempts have all failed (without any error messages or normal access). Yesterday, I manually processed the files and permissions and finally managed to use them

@springeye
Copy link
Author

I hope Gitea can backup and restore with just one click. Whether it's native app or docker

@99rgosse
Copy link
Contributor

Even Gitlab does not propose this. There is too much risk of loss at stake.
https://docs.gitlab.com/ee/administration/backup_restore/restore_gitlab.html

Even if an automatized Gitea backup would be neat, the administrator have to make sure the server has space, it is not corrupted, and so on, at this point, this is not anymore a gitea topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants