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

Omit database dump when doing gitea-dump #21056

Closed
snakers4 opened this issue Sep 4, 2022 · 2 comments
Closed

Omit database dump when doing gitea-dump #21056

snakers4 opened this issue Sep 4, 2022 · 2 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@snakers4
Copy link

snakers4 commented Sep 4, 2022

Feature Description

Gitea dump docs say the following:

Inside the gitea-dump-1482906742.zip file, will be the following:
...
gitea-db.sql - SQL dump of database
gitea-repo.zip - Complete copy of the repository directory.

I use a slightly modified gitea Dockerfile with a local folder as an attached volume and an external database:

        volumes:
            - /home/snakers4/gitea:/data
            - /etc/timezone:/etc/timezone:ro
            - /etc/localtime:/etc/localtime:ro

So, I have a question / feature proposal:

  • Can database dump be omitted during gitea-dump?
  • Can gitea be backed by just stopping it and backing up the database and the /data folder separately?

Screenshots

No response

@snakers4 snakers4 added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Sep 4, 2022
@JulienPalard
Copy link
Contributor

Looks like a duplicate of: #28720 which has been resolved by @kemzeb adding a --skip-db argument.

But I'm also interested by the idea of "just stopping it and backing up the database and the /data folder separately" answer.

@lunny lunny removed the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label May 3, 2024
@lunny
Copy link
Member

lunny commented May 3, 2024

Can database dump be omitted during gitea-dump?

#28720 did that like @JulienPalard said.

Can gitea be backed by just stopping it and backing up the database and the /data folder separately?

Yes for the standard installation from docker.

I think this issue could be closed. Please feel free to reopen it if you have any further problem.

@lunny lunny closed this as completed May 3, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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

3 participants