It wrongly keep the incomplete backup file when fails
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 95
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Hi,
when disk is full it correctly fails but it still keep the incomplete backup file and it also delete the oldest backup, so after many days of failed backups you are kept just with broken files since all good backups will be gone.
Can it be fixed please?
To Reproduce
Steps to reproduce the behavior:
- Execute a backup when disk is full
Expected behavior
When it fails I expect that it delete the broken backup file to avoid wasting space and do not delete the oldest one since the new is failed.
System (please complete the following information):
- OS: Linux

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named in the report; start by reproducing a backup failure with a full disk and trace the backup and retention flow. Done means a failed backup leaves no incomplete file and does not remove the oldest valid backup, with a regression test covering that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100