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:
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
/var/www/html/var/db/backups/backup.zip is successfully created.
Run another backup with the same command.
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.
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:
/usr/bin/docker exec --user=www-data partdb php bin/console partdb:backup --full /var/www/html/var/db/backups/backup.zip
/var/www/html/var/db/backups/backup.zip
is successfully created.Command fails immediately
Expected behavior backup file recreated in place with same name.
Server Side