docker-db-backup
docker-db-backup copied to clipboard
SHM file gets deleted when backing up sqlite3 db, causing db to unusable until restarting app
Summary
It seems to trigger a checkpoint to move data from WAL file to main DB file, then backs up that file, then I noticed WAL file was zeroed out, but that SHM file was deleted and I was getting I/O errors and DB ultimately wouldn't work, had to restart app to get it going again. It recreated the SHM file.
Steps to reproduce
- Backup sqlite3 db file
What is the expected correct behavior?
Either doesn't delete SHM file or recreates it if needs to
Relevant logs and/or screenshots
Environment
- Image version / tag: 4.1.21 / latest
- Host OS: Unraid