Skip to content

Stop backing up after a full-destination error - #109

Open
Solarboaters wants to merge 1 commit into
linuxmint:masterfrom
Solarboaters:fix/stop-on-full-backup-destination
Open

Solarboaters wants to merge 1 commit into
linuxmint:masterfrom
Solarboaters:fix/stop-on-full-backup-destination

Conversation

@Solarboaters

Copy link
Copy Markdown

Fixes #104. When writing the archive raises ENOSPC (or EDQUOT), stop scanning the remaining source files and show the existing error summary. Archive-initialization failures also stop the scan. Keep a failed archive under its .part name, even if the destination becomes writable again before the archive is closed, rather than presenting it as a completed backup.

An unreadable individual source file still allows the remaining files to be backed up. No free-space estimate is introduced: it cannot reliably predict compressed size or concurrent destination usage.

Validation: five tests execute the production backup worker and real tarfile writing against temporary directories. The output wrapper injects disk-full/quota errors during initialization or the first file; UI callbacks are replaced by test doubles. All three failure cases fail on the original code and pass with the fix. Successful backup and unreadable-source controls pass, including reading the resulting archives. Tested on Linux Mint/Python 3.12 with the installed Mint dependencies. This is worker-level validation, not a full graphical session or a physically filled disk.

Run: python3 -m unittest discover -s tests.

AI-assisted implementation and testing; thanks to the reporter for describing the failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out of free space on backup destination

1 participant