briven-restore-drill.service14 lines · main
| 1 | [Unit] |
| 2 | Description=briven monthly restore drill — verifies pg_dump backups by restoring them into a throwaway database |
| 3 | After=network-online.target |
| 4 | |
| 5 | [Service] |
| 6 | Type=oneshot |
| 7 | EnvironmentFile=/etc/briven-backup.env |
| 8 | ExecStart=/opt/briven/restore-drill.sh |
| 9 | StandardOutput=journal |
| 10 | StandardError=journal |
| 11 | TimeoutStartSec=30min |
| 12 | |
| 13 | [Install] |
| 14 | WantedBy=multi-user.target |