Skip to content

--overwrite doesn't work #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Gajillion opened this issue Jun 22, 2024 · 1 comment
Closed

--overwrite doesn't work #635

Gajillion opened this issue Jun 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Gajillion
Copy link

Describe the bug
partdb:backup option --overwrite should allow overwriting destination output file, even if it exists. Instead, backup fails.

To Reproduce
Steps to reproduce the behavior:

  1. Run initial backup with /usr/bin/docker exec --user=www-data partdb php bin/console partdb:backup --full /var/www/html/var/db/backups/backup.zip
  2. /var/www/html/var/db/backups/backup.zip is successfully created.
  3. Run another backup with the same command.
  4. Command fails immediately
 [INFO] Backup Part-DB to /var/www/html/var/db/backups/backup.zip

 The file /var/www/html/var/db/backups/backup.zip already exists. Do you want to overwrite it? (yes/no) [no]:
 >

 [ERROR] Backup aborted!

Expected behavior
backup file recreated in place with same name.

Server Side

  • Part-DB Version: 1.11.3 (docker)
  • PHP Version: docker installed version 4.1.27
  • Database Server sqlite
@Gajillion Gajillion added the bug Something isn't working label Jun 22, 2024
jbtronics added a commit that referenced this issue Jun 22, 2024
@jbtronics
Copy link
Member

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants