wp-media / wp-media/backwpup

It wrongly keep the incomplete backup file when fails

Open
#118 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. 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

Backup-log

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.