Discuss manual backup (gitea dump) #144

Closed
opened 2025-11-02 03:10:34 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @issmirnov on GitHub (Dec 22, 2016).

Hello everyone,

Reposting gogits/gogs#2924 so that we can keep track of it here.

There is a hidden command called dump that creates a zip file with the config (custom/conf/app.ini), gitea-db.sql and a nested zip of the repos.

It would be really good to have this behavior documented on the website, and also some tips on how to perform a restore. The way I see it, one can download a fresh binary of gitea, set up the same file structure and somehow import the sql file. I personally have very little experience with SQL so am not sure how this is done.

I'm in the middle of moving servers, so would be happy to be the guinea pig on migrating a gitea installation. I'm also a huge fan of markdown so can help with documentation if needed.


  • Operating system: Ubuntu 14.04 LTS
  • Database:
    • MySQL
Originally created by @issmirnov on GitHub (Dec 22, 2016). Hello everyone, Reposting gogits/gogs#2924 so that we can keep track of it here. There is a hidden command called `dump` that creates a zip file with the config (`custom/conf/app.ini`), `gitea-db.sql` and a nested zip of the repos. It would be really good to have this behavior documented on the website, and also some tips on how to perform a restore. The way I see it, one can download a fresh binary of gitea, set up the same file structure and somehow import the sql file. I personally have very little experience with SQL so am not sure how this is done. I'm in the middle of moving servers, so would be happy to be the guinea pig on migrating a gitea installation. I'm also a huge fan of markdown so can help with documentation if needed. --- - Operating system: Ubuntu 14.04 LTS - Database: - [X] MySQL
GiteaMirror added the type/docs label 2025-11-02 03:10:34 -06:00
Author
Owner

@lunny commented on GitHub (Dec 22, 2016):

You are right! And I think we need an enhanced dump which could dump-mysql or dump-sqlite and a restore command. Please feel free to send PR to go-gitea/docs to help us improve the documents.

@lunny commented on GitHub (Dec 22, 2016): You are right! And I think we need an enhanced dump which could dump-mysql or dump-sqlite and a restore command. Please feel free to send PR to go-gitea/docs to help us improve the documents.
Author
Owner

@tboerger commented on GitHub (Dec 22, 2016):

Maybe we can really integrate a restore command that imports everything that have been dumped before.

@tboerger commented on GitHub (Dec 22, 2016): Maybe we can really integrate a restore command that imports everything that have been dumped before.
Author
Owner

@lunny commented on GitHub (Dec 22, 2016):

Of course we will.

@lunny commented on GitHub (Dec 22, 2016): Of course we will.
Author
Owner

@bkcsoft commented on GitHub (Dec 23, 2016):

integrate a restore command that imports everything that have been dumped

I have a branch for that :trollface:

@bkcsoft commented on GitHub (Dec 23, 2016): > integrate a restore command that imports everything that have been dumped I have a branch for that :trollface:
Author
Owner

@lunny commented on GitHub (Dec 23, 2016):

Please send a PR.

@lunny commented on GitHub (Dec 23, 2016): Please send a PR.
Author
Owner

@lunny commented on GitHub (Jan 6, 2017):

So I think this issue has been resolved for your PR? And now we need a restore command, but that should be another issue or PR.

@lunny commented on GitHub (Jan 6, 2017): So I think this issue has been resolved for your PR? And now we need a restore command, but that should be another issue or PR.
Author
Owner

@lunny commented on GitHub (Jan 6, 2017):

@issmirnov

@lunny commented on GitHub (Jan 6, 2017): @issmirnov
Author
Owner

@issmirnov commented on GitHub (Jan 6, 2017):

@lunny Agreed, let's close this one. Perhaps @bkcsoft can open a FR tracker / working PR if there's already some work done on implementation.

@issmirnov commented on GitHub (Jan 6, 2017): @lunny Agreed, let's close this one. Perhaps @bkcsoft can open a FR tracker / working PR if there's already some work done on implementation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#144