Files
AntennaPod/storage/importexport
Copilot 17a9bc1b47 Flush WAL and verify temp copy before database export (#8347)
### Description

We don't have WAL enabled right now, but before we can, we have to make
sure that imports/exports handle WAL properly by flushing the file
before exporting. Also, copy the file to a temporary location and fail
if it is invalid to ensure that what we are exporting is actually a
proper backup.

Contributes to #8338
Closes: #5099

### Checklist
- [x] I have read the contribution guidelines:
https://github.com/AntennaPod/AntennaPod/blob/develop/CONTRIBUTING.md#submit-a-pull-request
- [x] I have performed a self-review of my code, going through my
changes line by line and carefully considering why this line change is
necessary
- [x] I have run the automated code checks using `./gradlew checkstyle
spotbugsPlayDebug spotbugsDebug :app:lintPlayDebug`
- [x] My code follows the style guidelines of the AntennaPod project:
https://antennapod.org/contribute/develop/app/code-style
- [x] I have mentioned the corresponding issue and the relevant keyword
(e.g., "Closes: #xy") in the description (see
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
- [x] If it is a core feature, I have added automated tests

<!-- START COPILOT CODING AGENT TIPS -->
---

📍 Connect Copilot coding agent with [Jira](https://gh.io/cca-jira-docs),
[Azure Boards](https://gh.io/cca-azure-boards-docs) or
[Linear](https://gh.io/cca-linear-docs) to delegate work to Copilot in
one click without leaving your project management tool.

---------

Co-authored-by: ByteHamster <5811634+ByteHamster@users.noreply.github.com>
Co-authored-by: pc-bert <88080348+pc-bert@users.noreply.github.com>
2026-03-16 23:29:28 +01:00
..

:storage:importexport

Import/Export of the AntennaPod database.