]> source.dussan.org Git - gitea.git/commitdiff
clarify aspects of the dump command (#26887)
authorJonRB <4564448+eeyrjmr@users.noreply.github.com>
Sun, 3 Sep 2023 18:44:01 +0000 (19:44 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Sep 2023 18:44:01 +0000 (14:44 -0400)
clarify aspects of the dump command

Possibly closes #26862

---------

Co-authored-by: delvh <dev.lh@web.de>
cmd/dump.go
docs/content/administration/command-line.en-us.md

index 9b5259b86f66b223b5b94949c1097ec20a1a3164..97f292ae09643892779520ce35c5b4ef20935137 100644 (file)
@@ -128,7 +128,7 @@ It can be used for backup and capture Gitea server image to send to maintainer`,
                &cli.StringFlag{
                        Name:    "database",
                        Aliases: []string{"d"},
-                       Usage:   "Specify the database SQL syntax",
+                       Usage:   "Specify the database SQL syntax: sqlite3, mysql, mssql, postgres",
                },
                &cli.BoolFlag{
                        Name:    "skip-repository",
index 05caff90e43395b3b6840dfa51ef8d2e894ae9b4..a52b93d344cd01d5afbaeb93d5959203ef71ef80 100644 (file)
@@ -334,9 +334,9 @@ in the current directory.
   - `--skip-attachment-data`: Skip dumping of attachment data. Optional.
   - `--skip-package-data`: Skip dumping of package data. Optional.
   - `--skip-log`: Skip dumping of log data. Optional.
-  - `--database`, `-d`: Specify the database SQL syntax. Optional.
+  - `--database`, `-d`: Specify the database SQL syntax. Optional (supported arguments: sqlite3, mysql, mssql, postgres).
   - `--verbose`, `-V`: If provided, shows additional details. Optional.
-  - `--type`: Set the dump output format. Optional. (default: zip)
+  - `--type`: Set the dump output format. Optional. (formats: zip, tar, tar.sz, tar.gz, tar.xz, tar.bz2, tar.br, tar.lz4, tar.zst default: zip).
 - Examples:
   - `gitea dump`
   - `gitea dump --verbose`