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

Discuss manual backup (gitea dump) #448

Closed
1 task done
issmirnov opened this issue Dec 22, 2016 · 8 comments
Closed
1 task done

Discuss manual backup (gitea dump) #448

issmirnov opened this issue Dec 22, 2016 · 8 comments
Labels
type/docs This PR mainly updates/creates documentation
Milestone

Comments

@issmirnov
Copy link

Hello everyone,

Reposting gogs/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
@lunny lunny added the type/docs This PR mainly updates/creates documentation label Dec 22, 2016
@lunny lunny added this to the 1.1.0 milestone Dec 22, 2016
@lunny
Copy link
Member

lunny commented 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.

@tboerger
Copy link
Member

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

@lunny
Copy link
Member

lunny commented Dec 22, 2016

Of course we will.

@bkcsoft
Copy link
Member

bkcsoft commented Dec 23, 2016

integrate a restore command that imports everything that have been dumped

I have a branch for that :trollface:

@lunny
Copy link
Member

lunny commented Dec 23, 2016

Please send a PR.

@lunny
Copy link
Member

lunny commented 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
Copy link
Member

lunny commented Jan 6, 2017

@issmirnov

@issmirnov
Copy link
Author

@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.

@lunny lunny closed this as completed Jan 6, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

No branches or pull requests

4 participants