Commit Graph

8 Commits

Author SHA1 Message Date
Nick Stokoe
ca24f7dae7 templates/docker-compose/ - update Borgmatics image
It's necessary to update to the `latest` image because the
`latest-msmtp` image is now unmaintained and doesn't support postgres
17.

However, this means we need to adjust things (the backup script and
the environment variable config) because we need to use the latest
notification mechanism, `apprise` instead of msmtp.

Tested, seems to be working.
2025-05-28 12:22:32 +01:00
Nick Stokoe
5ca9ecfe2a templates/docker-compose/borgmatic/ - avoid losing STDERR lines
use stdbuf to change the buffereing mode to be linewise
2025-05-28 12:22:32 +01:00
Nick Stokoe
86653e5f79 borgmatic/backup.sh - fix printf bug
Interpolation can and does insert % placeholders into the printf
template text - although not valid ones as they're intended for
python.

So be more careful!  Put all inserted text into the parameters to
printf, or use echo.

Also, keep some of the alterations used whilst diagnosing this.
2023-04-15 22:36:57 +01:00
Nick Stokoe
bd3ad70af4 backup/backup.sh - only create backup whilst services down; check after 2023-04-13 08:02:08 +01:00
Nick Stokoe
88d875d638 backup.sh - log with timestamps 2023-04-12 20:20:34 +01:00
Nick Stokoe
c8b1d00230 templates/docker-compose/borgmatic/backup.sh - refinements
Trap failures, ensure cleanup.

Send an email even if we fail.

Break borg locks in cleanup.

Implement testing smtp emails.
2023-04-12 20:01:11 +01:00
Nick Stokoe
2d3d9217e8 snackpot.yml etc. - add borgmatic backup container 2023-04-04 11:52:08 +01:00
Nick Stokoe
8d7163e7e6 requirements.yml,SETUP.md - prerequisites 2023-04-03 16:51:24 +01:00