Add users backup cron and Zabbix monitoring to Backups wiki
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
44
Backups.md
44
Backups.md
@@ -41,9 +41,48 @@ Rsync of all databases from SSD to backup volume.
|
|||||||
Source: `/mnt/ssd/dbs/` (gitea, otter, pihole, qdrant, zabbix)
|
Source: `/mnt/ssd/dbs/` (gitea, otter, pihole, qdrant, zabbix)
|
||||||
Destination: `/mnt/backups/dbs/`
|
Destination: `/mnt/backups/dbs/`
|
||||||
|
|
||||||
|
## Vaultwarden
|
||||||
|
|
||||||
|
Script: `vaultwarden/backup.sh` — uses built-in container backup, copies db/config/keys. Runs every 3 days.
|
||||||
|
|
||||||
|
```
|
||||||
|
0 2 */3 * * /home/alvis/agap_git/vaultwarden/backup.sh >> /var/log/vaultwarden-backup.log 2>&1
|
||||||
|
```
|
||||||
|
|
||||||
|
Destination: `/mnt/backups/vaultwarden/<timestamp>/`
|
||||||
|
Retention: last 5 backups
|
||||||
|
Zabbix: trapper item `vaultwarden.backup.ts` (id 70368) — trigger if no backup in 4 days
|
||||||
|
|
||||||
|
## Seafile
|
||||||
|
|
||||||
|
Script: `seafile/backup.sh` — mysqldump of 3 DBs + rsync of seafile data. Runs every 3 days.
|
||||||
|
|
||||||
|
```
|
||||||
|
0 2 */3 * * /home/alvis/agap_git/seafile/backup.sh >> /var/log/seafile-backup.log 2>&1
|
||||||
|
```
|
||||||
|
|
||||||
|
Destination: `/mnt/backups/seafile/<timestamp>/`
|
||||||
|
Retention: last 5 backups
|
||||||
|
Zabbix: trapper item `seafile.backup.ts` (id 70369) — trigger if no backup in 4 days
|
||||||
|
|
||||||
|
## Users (/mnt/misc)
|
||||||
|
|
||||||
|
Script: `users-backup.sh` — rsyncs alvis and liza home dirs from `/mnt/misc` to backup volume. Runs every 3 days.
|
||||||
|
|
||||||
|
```
|
||||||
|
0 4 */3 * * /home/alvis/agap_git/users-backup.sh >> /var/log/users-backup.log 2>&1
|
||||||
|
```
|
||||||
|
|
||||||
|
| Source | Destination |
|
||||||
|
|--------|-------------|
|
||||||
|
| `/mnt/misc/alvis/` | `/mnt/backups/users/alvis/` |
|
||||||
|
| `/mnt/misc/liza/` | `/mnt/backups/users/liza/` |
|
||||||
|
|
||||||
|
Zabbix: trapper item `users.backup.ts` (id 70379) — trigger (id 32869) if no backup in 4 days
|
||||||
|
|
||||||
## Zabbix Monitoring
|
## Zabbix Monitoring
|
||||||
|
|
||||||
Both backups are monitored via Zabbix agent on host `AgapHost`.
|
Backups monitored via Zabbix on host `AgapHost`.
|
||||||
|
|
||||||
| Item key | Description | Trigger |
|
| Item key | Description | Trigger |
|
||||||
|----------|-------------|---------|
|
|----------|-------------|---------|
|
||||||
@@ -51,5 +90,8 @@ Both backups are monitored via Zabbix agent on host `AgapHost`.
|
|||||||
| `gitea.backup.age` | Seconds since last dump zip | High if > 25h |
|
| `gitea.backup.age` | Seconds since last dump zip | High if > 25h |
|
||||||
| `dbs.backup.age` | Seconds since last rsync (`.last_sync` mtime) | High if > 25h |
|
| `dbs.backup.age` | Seconds since last rsync (`.last_sync` mtime) | High if > 25h |
|
||||||
| `immich.backup.age` | Seconds since last immich backup (`.last_sync` mtime) | High if > 25h |
|
| `immich.backup.age` | Seconds since last immich backup (`.last_sync` mtime) | High if > 25h |
|
||||||
|
| `vaultwarden.backup.ts` | Timestamp of last backup (trapper) | Warning if > 4 days |
|
||||||
|
| `seafile.backup.ts` | Timestamp of last backup (trapper) | Warning if > 4 days |
|
||||||
|
| `users.backup.ts` | Timestamp of last backup (trapper) | Warning if > 4 days |
|
||||||
|
|
||||||
Agent config: `/etc/zabbix/zabbix_agent2.d/gitea_backup.conf`
|
Agent config: `/etc/zabbix/zabbix_agent2.d/gitea_backup.conf`
|
||||||
|
|||||||
Reference in New Issue
Block a user