Commit graph

28 commits

Author SHA1 Message Date
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
Renovate Bot
4dd43ed402 automation: Update backup-duplicity Docker tag to v1.2.3 2023-06-11 08:06:23 +00:00
Renovate Bot
7172dcbbea automation: Update backup-duplicity Docker tag to v1.2.2 2023-01-27 07:04:27 +00:00
Renovate Bot
edef9d5869 automation: Update backup-duplicity Docker tag to v1 2023-01-01 07:04:32 +00:00
f112f27449
ansible-lint: Fix various new issues 2022-11-02 21:57:13 +01:00
5393a8ebbc
Use FQCN in all tasks 2022-08-13 17:50:54 +02:00
Renovate Bot
ee5e882e39 automation: Update backup-duplicity to version 0.8.23 2022-05-16 06:04:30 +00:00
Renovate Bot
a636481f55 automation: Update backup-duplicity to version 0.8.22 2022-03-07 05:04:23 +00:00
Renovate Bot
5572d2cbad automation: Update backup-duplicity Docker tag to v0.8.21 2021-11-22 05:04:52 +00:00
e5d5d63714
lvm_self_backup: Reload systemd if service changed 2021-11-20 03:30:44 +01:00
21b54c11cf
lvm_self_backup: Restrict permissions on systemd service files 2021-11-20 00:27:19 +01: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
Renovate Bot
0ae0f5a817 automation: Update backup-duplicity Docker tag to v0.8.20 2021-06-30 18:07:12 +00:00
Renovate Bot
31f63603cb automation: Update backup-duplicity Docker tag to v0.8.19 2021-05-01 16:04:15 +00:00
Renovate Bot
c7fecb4b80 automation: Update backup-duplicity Docker tag to v0.8.18 2021-03-15 12:13:20 +00:00
2a74d8c464
lvm_self_backup: Add renovate instruction for container image 2021-03-15 13:09:53 +01:00
951dbeb41d
Fix yamllint issues 2021-03-05 13:02:55 +01: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
22302117fa
lvm_self_backup: Adjust directory permissions
This patch reduces the permissions on the install directory to just the root user and also fixes the ansible-lint issue by specifying the `mode`.
2020-09-26 21:35:58 +02: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