backups: seconds in the name, so two in one minute don't overwrite; update.sh prints the api's log on a failed check

This commit is contained in:
iamdoubz committed 2026-10-21 11:34:42 -05:00
1 parent ff59bc7799
commit e2518b03d8
6 files changed
+17 -8

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ A later rebuild without `--build-arg` goes back to the version the code names.
![Settings → Backups](img/settings-backups.png)
A backup (`data/backups/selfphoneng-YYYYMMDD-HHMM.tar.gz`) holds:
A backup (`data/backups/selfphoneng-YYYYMMDD-HHMMSS.tar.gz`) holds:
- the database: users, extensions, numbers, settings, call history;
- voicemail;
+1 -1
View File
@@ -477,7 +477,7 @@ whole minutes). Each job has a running flag; an error is logged, not fatal.
backup emails them too (08 §3.2). Email not set up: logged, nothing else.
### 8.1 Backups
Folder `/var/lib/selfphoneng/backups/selfphoneng-YYYYMMDD-HHMM.tar.gz` containing:
Folder `/var/lib/selfphoneng/backups/selfphoneng-YYYYMMDD-HHMMSS.tar.gz` containing:
`db.sql` (`pg_dump --no-owner`), `voicemail/`, `sounds-custom/`, `moh/`,
`manifest.json`. Do **not** include `asterisk-generated/`: it holds plaintext SIP passwords and is rebuilt from the DB on start.
`manifest.json` is `{version, createdAt, includesRecordings}`. The backup file mode is 0600. Recordings are optional