Skip to content

dump creates empty zip file #8939

Closed
Closed
@muellert

Description

@muellert
  • Gitea version (or commit ref): 1.9.5
  • Git version: 2.11
  • Operating system: Debian 9.9 amd64
  • Database (use [x]):
    • [ x] PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ x] Not relevant
  • Log gist:

Description

When I try to create a backup, I run 'gitea dump -c /path/to/app.ini -t /var/tmp' because there is not enough space on /tmp.

The result is a directory in /var/tmp. Example (I have repeated this several times):

$ ls -al /var/tmp/gitea-dump-508575557
total 232284
drwx------ 2 _gitea _gitea 4096 Nov 12 23:30 ./
drwxrwxrwt 10 root root 4096 Nov 12 23:29 ../
-rw-r--r-- 1 _gitea _gitea 1362032 Nov 12 23:30 gitea-db.sql
-rw-r--r-- 1 _gitea _gitea 236244910 Nov 12 23:30 gitea-repo.zip
$

The command exits silently with an exit code of 1.

In the directory, from where I started the command, there is an empty zip file, which just has the header:

$ ls -l gitea-dump-1573597794.zip
-rw-r--r-- 1 _gitea _gitea 22 Nov 12 23:29 gitea-dump-1573597794.zip
$

...

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions