Skip to content
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

feat: ignore tar: file changed as we read it during backups #26462

Merged

Conversation

akhilnarang
Copy link
Member

This seems to occur when new files are being created as we're archiving
the files on a site. Doesn't make sense to fail the entire backup
because of that.

Previous behaviour would lead to the backup not being deleted from the
server, causing it to eventually run out of space. Since that was
changed, it would lead to just no backups being created for some span
of time, seems better to have most files backed up rather than no
backup.

This seems to occur when new files are being created as we're archiving
the files on a site. Doesn't make sense to fail the entire backup
because of that.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label May 17, 2024
frappe/utils/__init__.py Outdated Show resolved Hide resolved
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
@akhilnarang akhilnarang added backport version-15-hotfix Backport the PR to v15 and removed add-test-cases Add test case to validate fix or enhancement labels May 18, 2024
@akhilnarang akhilnarang merged commit 45ffcf6 into frappe:develop May 21, 2024
22 of 23 checks passed
@akhilnarang akhilnarang deleted the tar-ignore-file-changed-as-we-read-it branch May 21, 2024 06:16
akhilnarang added a commit that referenced this pull request May 22, 2024
#26462) (#26495)

* feat: ignore `tar: file changed as we read it` during backups

This seems to occur when new files are being created as we're archiving
the files on a site. Doesn't make sense to fail the entire backup
because of that.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
(cherry picked from commit 803b45b)

* fix: add `errors=replace` to decode() call

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
(cherry picked from commit e3e6834)

---------

Co-authored-by: Akhil Narang <me@akhilnarang.dev>
frappe-pr-bot pushed a commit that referenced this pull request May 28, 2024
# [15.29.0](v15.28.0...v15.29.0) (2024-05-28)

### Bug Fixes

* Appropriate variable name, avoid redefining parameter ([a75c031](a75c031))
* child table field wildcard in API ([#26543](#26543)) ([#26560](#26560)) ([20ac585](20ac585))
* Drop file_manager.download_file ([#26575](#26575)) ([#26577](#26577)) ([6ace16b](6ace16b))
* ignore apps without pyproject ([#26498](#26498)) ([#26503](#26503)) ([6c3c798](6c3c798))
* reload before saving on reconnect ([#26534](#26534)) ([#26537](#26537)) ([22e278f](22e278f))
* Use true stderr for dumping trace ([#26524](#26524)) ([#26527](#26527)) ([e7e55db](e7e55db))

### Features

* Add `on_add_row` event for grid in Dialog ([e592b87](e592b87))
* ignore `tar: file changed as we read it` during backups (backport [#26462](#26462)) ([#26495](#26495)) ([30f767e](30f767e))
* Option to make webform embeddable ([f08fff5](f08fff5))

### Performance Improvements

* Avoid coalesce for `between` filters ([#26531](#26531)) ([#26532](#26532)) ([8263898](8263898))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants