Skip to content

Commit

Permalink
Merge branch 'lunny/migrate_more_storages' of github.com:lunny/gitea …
Browse files Browse the repository at this point in the history
…into lunny/migrate_more_storages
  • Loading branch information
lunny committed Aug 16, 2022
2 parents 8e1bcde + a8424ee commit 233e02d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/migrate_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ import (
var CmdMigrateStorage = cli.Command{
Name: "migrate-storage",
Usage: "Migrate the storage",
Description: "This is a command for migrating Gitea configured storage to a parameter indicated storage.",
Description: "Copies stored files from storage configured in app.ini to parameter-configured storage",
Action: runMigrateStorage,
Flags: []cli.Flag{
cli.StringFlag{
Name: "type, t",
Value: "",
Usage: "Kinds of files to migrate, could be one of 'attachments', 'lfs', 'avatars', 'repo-avatars', 'repo-archivers', 'packages'",
Usage: "Type of stored files to copy. Allowed types: 'attachments', 'lfs', 'avatars', 'repo-avatars', 'repo-archivers', 'packages'",
},
cli.StringFlag{
Name: "storage, s",
Expand Down Expand Up @@ -201,7 +201,7 @@ func runMigrateStorage(ctx *cli.Context) error {
if err := m(stdCtx, dstStorage); err != nil {
return err
}
log.Warn("All files have been copied to the new placement but old files are still on the original placement.")
log.Info("%s files have successfully been copied to the new storage.", tp)
return nil
}

Expand Down

0 comments on commit 233e02d

Please sign in to comment.