Dev Recovers Lost Gitea Data from Proxmox Backup After Docker Cleanup Mishap

A home lab user accidentally wiped their Gitea instance's repositories and user data while running a routine Docker cleanup on a Lenovo M920q mini PC. The data loss stemmed from a misconfigured bind mount that pointed directly into Docker's internal volume storage, causing the cleanup process to delete the volume as if it were unused. Rather than restoring an entire VM from backup, the user surgically extracted the needed directory by decompressing a Proxmox VMA backup, mounting the raw disk image via loop device, and navigating the LVM structure to retrieve the intact files. A corrupted SQLite database — likely caused by the backup running mid-write — was repaired using SQLite's built-in recovery mode. The setup was subsequently rebuilt with volume paths stored on a Synology NAS instead of inside Docker's internal storage to prevent a recurrence.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in