4dfd382a75
feat(lvm_self_backup): Add error service when systemd service fails
...
This is to be notified when the systemd service fails to e.g. unmount the partition.
2024-02-21 22:25:46 +01:00
43535443c2
fix(backup-lvm): ExecStopPost command using bash syntax
...
This cannot be used in a systemd exec command. Ooopsie
2024-02-21 22:12:19 +01:00
b3153e2a5b
lvm_self_backup: Fix unmount issues
...
Somehow unmount fails if the mount is already unmounted, so we just ignore unmounts exit code
2024-02-07 23:32:26 +01:00
dae41f9c7c
lvm_self_backup: Fix snapshot folder
2024-02-07 23:31:02 +01:00
d2782b2e5b
fix(lvm_self_backup): Var typo in backup-lvm.sh
2023-10-14 01:19:04 +02:00
824af595f2
!fix(lvm_self_backup): Rename vars according to lint rule
2023-10-14 00:18:16 +02:00
f67be989cc
lvm_self_backup: Option to configure user/group for status dir
...
This allows to give the telegraf container access to the backup status flags
2021-10-29 23:46:10 +02:00
524bfe4fd4
lvm_self_backup: Increase timeout and show progress information
...
This sets the timeout to 20h, because full backups usually take longer and also enabled progress logs, to see if the job is actually still doing something.
2021-10-06 00:00:30 +02:00
d6f99396c3
lvm_self_backup: Add timeout and mount/umount tasks to systemd service
...
This patch adds a timeout to notice a failure, when the container hangs and does not do anything. This happened already and with moving the mount and unmount and snapshot management to the service file, we ensure that they are properly removed after a timeout.
Thanks to @Histalek for the service config (https://git.histalek.de/histalek-de/infrastructure/-/blob/main/roles/lvm_backup/templates/backup-lvm.service )
2021-10-05 16:49:34 +02:00
3a64fb79ef
lvm_self_backup: Fix error handling in backup script & add status file
...
This file can be used for monitoring purposes.
2021-01-02 10:59:22 +01:00
9b389ae587
lvm_self_backup: Add backup retention
...
This implements backup retention.
Inspired by 6d238ab04308125a411c630f39319e86a23d3dce of https://git.shivering-isles.com/shivering-isles/infrastructure
2021-01-02 05:40:24 +01:00
a47fde9c9c
Rename roles to underscore
...
This patch renames all roles with a `-` to `_`, to comply with the ansible-lint rule 106. As collection roles are now also limited to these symbols and this will make it easier to move them later.
2020-09-26 18:12:59 +02:00