tempdir command-line option partially ignored by backup command? #772

Closed
opened 2025-11-02 03:36:22 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @vivid-inc on GitHub (Jun 5, 2017).

  • Gitea version (or commit ref): 1.1.1
  • Git version: 1.9.1
  • Operating system: Linux
  • Database (use [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

Supplying an alternate tempdir causes the backup to fail on our particular file-system layout (/tmp is tiny) :

$ gitea dump --tempdir=/path/to/my/temp
...
2017... Failed to save gitea-dump-149....zip: write /tmp/cae/gitea-dump-149....zip/gitea-repo.zip: no space left on device

Perhaps this depends on interpretation, but, as someone who just wants to quickly get a Git repository manager up with the least number of stumbles, I read tempdir to mean the path that will be used in every case that calls for a temporary directory during the backup process, and so I expect that it will use my supplied temp dir path even to construct the zip.

Thanks!

Originally created by @vivid-inc on GitHub (Jun 5, 2017). - Gitea version (or commit ref): 1.1.1 - Git version: 1.9.1 - Operating system: Linux - Database (use `[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 Supplying an alternate `tempdir` causes the backup to fail on our particular file-system layout (`/tmp` is tiny) : ``` $ gitea dump --tempdir=/path/to/my/temp ... 2017... Failed to save gitea-dump-149....zip: write /tmp/cae/gitea-dump-149....zip/gitea-repo.zip: no space left on device ``` Perhaps this depends on interpretation, but, as someone who just wants to quickly get a Git repository manager up with the least number of stumbles, I read `tempdir` to mean the path that will be used in every case that calls for a temporary directory during the backup process, and so I expect that it will use my supplied temp dir path even to construct the zip. Thanks!
GiteaMirror added the type/featuretype/enhancement labels 2025-11-02 03:36:22 -06:00
Author
Owner

@cez81 commented on GitHub (Jun 8, 2017):

See #1103

@cez81 commented on GitHub (Jun 8, 2017): See #1103
Author
Owner

@appleboy commented on GitHub (Jun 9, 2017):

closed via #1103

@appleboy commented on GitHub (Jun 9, 2017): closed via #1103
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#772