Skip to content

dump command on windows works NOT correct #5753

@c-key

Description

@c-key
  • Gitea version (or commit ref): 1.6.1 and 1.6.3
  • Git version: 2.20.0
  • Operating system: Windows Server 2016
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log:
C:\GIT>gitea.exe dump --config C:\Git\gitea\custom\conf\app.ini
2019/01/16 16:22:24 Creating tmp work dir: C:\Users\ADMKAH~1\AppData\Local\Temp\2\gitea-dump-660525307
2019/01/16 16:22:24 Dumping local repositories...C:\GIT\repos
2019/01/16 16:22:27 Dumping database...
2019/01/16 16:22:28 Packing dump files...
2019/01/16 16:22:28 Custom dir C:/GIT/custom doesn't exist, skipped
2019/01/16 16:22:28 Packing data directory...C:/GIT/gitea/data
2019/01/16 16:22:30 Removing tmp work dir: C:\Users\ADMKAH~1\AppData\Local\Temp\2\gitea-dump-660525307
2019/01/16 16:22:30 Finish dumping in file gitea-dump-1547652148.zip

Description

I want to update the Gitea version and follow the update guide in the docs. So I create a backup through the dump command and two things does not work correct.

  1. The dump command skipped the custom directory. Why, it exists and contains data. But no configuration is found on command line and in the app.ini to correct the path for the custom directory.

This is the directory structure:

C:\Git
├───gitea
│   ├───custom
│   │   ├───certs
│   │   └───conf
│   ├───data
│   │   ├───avatars
│   │   └───sessions
│   ├───indexers
│   │   └───issues.bleve
│   ├───log
│   └───public
└───repos
  1. The gitea-repo.zip has a size of 21.632 KB but when I open this file in the windows explorer it showns no content. But in 7-Zip I can see content. Maybe it is the same error like issue gitea dump creates zip with backslashes as path separator #3585.

Please fix the issues. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implemented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions