Add a --skip-db option to gitea dump #12302

Closed
opened 2025-11-02 10:04:56 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @JulienPalard on GitHub (Jan 7, 2024).

Feature Description

As the docs says:

Gitea admins may prefer to use the native the MySQL and PostgreSQL dump tools instead.

So it would be nice to have a --skip-db in gitea dump to avoid dumping the database twice per backup, saving a bit of time.

Screenshots

No response

Originally created by @JulienPalard on GitHub (Jan 7, 2024). ### Feature Description As [the docs says](https://docs.gitea.com/administration/backup-and-restore): > Gitea admins may prefer to use the native the MySQL and PostgreSQL dump tools instead. So it would be nice to have a `--skip-db` in `gitea dump` to avoid dumping the database twice per backup, saving a bit of time. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:04:56 -06:00
Author
Owner

@maltegrosse commented on GitHub (Apr 18, 2024):

Flags to skip or include certain objects would be great. As all my container are built automatically, I dont want to backup them. As container sizes can be quite heavy, a --skip-packages would be a nice feature.

EDIT: nevermind, found it int he go file, https://github.com/go-gitea/gitea/blob/main/cmd/dump.go#L83

@maltegrosse commented on GitHub (Apr 18, 2024): Flags to skip or include certain objects would be great. As all my container are built automatically, I dont want to backup them. As container sizes can be quite heavy, a `--skip-packages` would be a nice feature. EDIT: nevermind, found it int he go file, https://github.com/go-gitea/gitea/blob/main/cmd/dump.go#L83
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12302