main
Ricard Illa 2022-10-20 16:17:37 +02:00
parent 5b0a15f9cd
commit ad139b81f2
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,9 @@
timestamp_format long
snapshot_preserve_min 18h
snapshot_preserve 48h
transaction_log /var/log/btrbk.log
volume /mnt/btr_pool
snapshot_dir btrbk_snapshots
subvolume home

View File

@ -3,6 +3,7 @@
apk: apk:
name: name:
- btrbk - btrbk
- coreutils # needed by btrbk
- btrfs-progs - btrfs-progs
- cryptsetup - cryptsetup
- gnupg - gnupg

View File

@ -13,3 +13,8 @@
- "btr_balance.sh" - "btr_balance.sh"
- "btr_scrub.sh" - "btr_scrub.sh"
- "fs_trim.sh" - "fs_trim.sh"
- name: copy btrbk config
copy:
src: "host_files/btrbk/{{ ansible_hostname }}/btrbk.conf"
dest: /etc/btrbk/btrbk.conf