Skip to content

Dump contains duplicated data #10365

@PhilippHomann

Description

@PhilippHomann
  • Gitea version (or commit ref): v1.11.1
  • Git version: 2.24.1
  • Operating system: Docker Container
  • 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 gist:

Description

It seems that many data inside a dump created using gitea dump is duplicated.

Steps to reproduce

  1. Run docker container: docker run --name=gitea -p 3000:3000 -ti --rm gitea/gitea:1
  2. Run initial setup without any configuration change
  3. Run dump command
    docker exec -ti gitea sh
    su git
    gitea dump
  4. Examine dump file
Archive:  gitea-dump-1582113818.zip
Zip file size: 66623 bytes, number of entries: 53
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 custom/
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 custom/conf/
-rw-r--r--  2.0 unx     2069 bX defN 20-Feb-19 13:03 custom/conf/app.ini
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 custom/indexers/
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 custom/indexers/issues.bleve/
-rw-r--r--  2.0 unx       13 bX defN 20-Feb-19 13:03 custom/indexers/issues.bleve/rupture_meta.json
-rw-------  2.0 unx    32768 bX defN 20-Feb-19 13:03 custom/indexers/issues.bleve/store
-rw-r--r--  2.0 unx       47 bX defN 20-Feb-19 13:03 custom/indexers/issues.bleve/index_meta.json
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 custom/log/
-rw-r-----  2.0 unx    51734 bX defN 20-Feb-19 13:03 custom/log/gitea.log
-rw-r--r--  2.0 unx  1110016 bX defN 20-Feb-19 13:03 custom/gitea.db
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 custom/queues/
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 custom/queues/issue_indexer/
-rw-r--r--  2.0 unx       54 bX defN 20-Feb-19 13:03 custom/queues/issue_indexer/MANIFEST-000000
-rw-r--r--  2.0 unx       67 bX defN 20-Feb-19 13:03 custom/queues/issue_indexer/000001.log
-rw-r--r--  2.0 unx        0 bX defN 20-Feb-19 13:03 custom/queues/issue_indexer/LOCK
-rw-r--r--  2.0 unx       16 bX defN 20-Feb-19 13:03 custom/queues/issue_indexer/CURRENT
-rw-r--r--  2.0 unx      360 bX defN 20-Feb-19 13:03 custom/queues/issue_indexer/LOG
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 custom/queues/task/
-rw-r--r--  2.0 unx       54 bX defN 20-Feb-19 13:03 custom/queues/task/MANIFEST-000000
-rw-r--r--  2.0 unx       67 bX defN 20-Feb-19 13:03 custom/queues/task/000001.log
-rw-r--r--  2.0 unx        0 bX defN 20-Feb-19 13:03 custom/queues/task/LOCK
-rw-r--r--  2.0 unx       16 bX defN 20-Feb-19 13:03 custom/queues/task/CURRENT
-rw-r--r--  2.0 unx      358 bX defN 20-Feb-19 13:03 custom/queues/task/LOG
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 data/
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 data/conf/
-rw-r--r--  2.0 unx     2069 bX defN 20-Feb-19 13:03 data/conf/app.ini
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 data/indexers/
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 data/indexers/issues.bleve/
-rw-r--r--  2.0 unx       13 bX defN 20-Feb-19 13:03 data/indexers/issues.bleve/rupture_meta.json
-rw-------  2.0 unx    32768 bX defN 20-Feb-19 13:03 data/indexers/issues.bleve/store
-rw-r--r--  2.0 unx       47 bX defN 20-Feb-19 13:03 data/indexers/issues.bleve/index_meta.json
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 data/log/
-rw-r-----  2.0 unx    51734 bX defN 20-Feb-19 13:03 data/log/gitea.log
-rw-r--r--  2.0 unx  1110016 bX defN 20-Feb-19 13:03 data/gitea.db
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 data/queues/
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 data/queues/issue_indexer/
-rw-r--r--  2.0 unx       54 bX defN 20-Feb-19 13:03 data/queues/issue_indexer/MANIFEST-000000
-rw-r--r--  2.0 unx       67 bX defN 20-Feb-19 13:03 data/queues/issue_indexer/000001.log
-rw-r--r--  2.0 unx        0 bX defN 20-Feb-19 13:03 data/queues/issue_indexer/LOCK
-rw-r--r--  2.0 unx       16 bX defN 20-Feb-19 13:03 data/queues/issue_indexer/CURRENT
-rw-r--r--  2.0 unx      360 bX defN 20-Feb-19 13:03 data/queues/issue_indexer/LOG
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 data/queues/task/
-rw-r--r--  2.0 unx       54 bX defN 20-Feb-19 13:03 data/queues/task/MANIFEST-000000
-rw-r--r--  2.0 unx       67 bX defN 20-Feb-19 13:03 data/queues/task/000001.log
-rw-r--r--  2.0 unx        0 bX defN 20-Feb-19 13:03 data/queues/task/LOCK
-rw-r--r--  2.0 unx       16 bX defN 20-Feb-19 13:03 data/queues/task/CURRENT
-rw-r--r--  2.0 unx      358 bX defN 20-Feb-19 13:03 data/queues/task/LOG
drwxr-xr-x  2.0 unx        0 bx stor 20-Feb-19 13:03 log/
-rw-r-----  2.0 unx    51734 bX defN 20-Feb-19 13:03 log/gitea.log
-rw-r--r--  2.0 unx    32618 bX defN 20-Feb-19 13:03 gitea-db.sql
-rw-r--r--  2.0 unx     2069 bX defN 20-Feb-19 13:03 app.ini
-rw-r--r--  2.0 unx      142 bX defN 20-Feb-19 13:03 gitea-repo.zip
53 files, 2481841 bytes uncompressed, 58531 bytes compressed:  97.7%

LTM like the data and the custom directory contain the same data.
Also the log files (which might be quite huge) are dumped for a third time. The app.ini also.
Is this a expected behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions