Continued work on backup script, methodology
Quality Gate / gate (push) Failing after 48s

This commit is contained in:
Jim Lancaster
2026-08-26 14:26:15 -05:00
parent 89ed83239e
commit ca29bc8b74
4 changed files with 57 additions and 0 deletions
+19
View File
@@ -33,6 +33,25 @@ Example with Synology mount:
SYNOLOGY_BACKUP_DIR=/mnt/synology/transcription-backups sh deploy/backup/create_postgres_backup.sh
```
## 2.1 Persisting Synology mount (LXC)
The backup copy step depends on a mounted NAS path. Manual `mount` commands are lost after reboot unless persisted.
Use the template (copy, edit placeholders, then run):
```bash
cp deploy/backup/mount_synology_cifs.example.sh /root/mount_synology_cifs.sh
nano /root/mount_synology_cifs.sh
sh /root/mount_synology_cifs.sh
```
Then add the printed `/etc/fstab` line (with your real values) so the mount survives reboot.
Recommended pattern:
- Keep NAS credentials in a local file like `/etc/samba/credentials/transcription-synology` with `chmod 600`.
- Keep `SYNOLOGY_BACKUP_DIR` in `.env.production` aligned to that mount point (for example `/mnt/synology-backups`).
## 3. Restoring from backup
Restore requires downtime for app + worker writes.
+1
View File
@@ -109,6 +109,7 @@ This runbook is the operational checklist for releasing and monitoring the trans
2. Confirm dump file exists and is non-zero size.
3. Re-run backup/restore scripts with explicit `ENV_FILE` and `COMPOSE_FILE` if using non-default paths.
4. If Synology copy fails, keep local backup and resolve mount/network before next backup cycle.
- For LXC setups, use `deploy/backup/mount_synology_cifs.example.sh` as the persistent mount template.
## 6. Dependency upgrade policy