mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 08:32:16 +00:00
[BRANDING] Rebrand dump log
(cherry picked from commitb92a65a23f
) (cherry picked from commiteaeb9f183f
) (cherry picked from commitcdbd0ebe5e
) (cherry picked from commit8aaa4e3f4d
) (cherry picked from commit6d7d3f048e
) (cherry picked from commit1b6a2971ad
) (cherry picked from commit4f7f35043d
) (cherry picked from commit495a4351b1
) (cherry picked from commit12d89b03a9
) (cherry picked from commit476d49ff11
) (cherry picked from commitd6e95828c3
) (cherry picked from commitd043e8d69d
) (cherry picked from commitb060273442
) (cherry picked from commit20437285c5
) (cherry picked from commit0bc9eee5f3
) (cherry picked from commitb9f843776f
) (cherry picked from commite6d64de500
) (cherry picked from commit5ce2ff2f8b
) (cherry picked from commit659677cf88
) (cherry picked from commit648a5d944e
) (cherry picked from commita77c8be704
) (cherry picked from commit012cb57046
) (cherry picked from commit2da63c976e
) (cherry picked from commit792ce8b1b7
) (cherry picked from commita4b3244712
) (cherry picked from commit9ffc3571f1
) (cherry picked from commit6aadfd0120
) (cherry picked from commitbdfc590b56
) (cherry picked from commit6d4f25799f
) (cherry picked from commitfa39bb1b0e
) (cherry picked from commitb9f86b4dc5
) (cherry picked from commit14a60da5b3
) (cherry picked from commitd198a93f70
) (cherry picked from commitf74a07d872
) (cherry picked from commit50460b0925
) (cherry picked from commit762847ef0c
) (cherry picked from commitf6ebea410d
) (cherry picked from commitb08e1dcfa9
) (cherry picked from commite5e4f18488
) (cherry picked from commitd8c600bd79
) (cherry picked from commitcbaa08770d
) (cherry picked from commita49d65476f
) (cherry picked from commit2e3682d519
) (cherry picked from commit0a45629b70
) (cherry picked from commit6629c83725
)
This commit is contained in:
parent
539cceca39
commit
ee5169a867
14
cmd/dump.go
14
cmd/dump.go
|
@ -98,15 +98,15 @@ var outputTypeEnum = &outputType{
|
|||
// CmdDump represents the available dump sub-command.
|
||||
var CmdDump = &cli.Command{
|
||||
Name: "dump",
|
||||
Usage: "Dump Gitea files and database",
|
||||
Usage: "Dump Forgejo files and database",
|
||||
Description: `Dump compresses all related files and database into zip file.
|
||||
It can be used for backup and capture Gitea server image to send to maintainer`,
|
||||
It can be used for backup and capture Forgejo server image to send to maintainer`,
|
||||
Action: runDump,
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "file",
|
||||
Aliases: []string{"f"},
|
||||
Value: fmt.Sprintf("gitea-dump-%d.zip", time.Now().Unix()),
|
||||
Value: fmt.Sprintf("forgejo-dump-%d.zip", time.Now().Unix()),
|
||||
Usage: "Name of the dump file which will be created. Supply '-' for stdout. See type for available types.",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
|
@ -209,7 +209,7 @@ func runDump(ctx *cli.Context) error {
|
|||
|
||||
if !setting.InstallLock {
|
||||
log.Error("Is '%s' really the right config path?\n", setting.CustomConf)
|
||||
return fmt.Errorf("gitea is not initialized")
|
||||
return fmt.Errorf("forgejo is not initialized")
|
||||
}
|
||||
setting.LoadSettings() // cannot access session settings otherwise
|
||||
|
||||
|
@ -288,7 +288,7 @@ func runDump(ctx *cli.Context) error {
|
|||
fatal("Path does not exist: %s", tmpDir)
|
||||
}
|
||||
|
||||
dbDump, err := os.CreateTemp(tmpDir, "gitea-db.sql")
|
||||
dbDump, err := os.CreateTemp(tmpDir, "forgejo-db.sql")
|
||||
if err != nil {
|
||||
fatal("Failed to create tmp file: %v", err)
|
||||
}
|
||||
|
@ -310,8 +310,8 @@ func runDump(ctx *cli.Context) error {
|
|||
fatal("Failed to dump database: %v", err)
|
||||
}
|
||||
|
||||
if err := addFile(w, "gitea-db.sql", dbDump.Name(), verbose); err != nil {
|
||||
fatal("Failed to include gitea-db.sql: %v", err)
|
||||
if err := addFile(w, "forgejo-db.sql", dbDump.Name(), verbose); err != nil {
|
||||
fatal("Failed to include forgejo-db.sql: %v", err)
|
||||
}
|
||||
|
||||
if len(setting.CustomConf) > 0 {
|
||||
|
|
Loading…
Reference in a new issue