Add backups for music

This commit is contained in:
Wojciech Kozlowski 2023-02-19 22:51:17 +01:00
parent d155da3414
commit dc59b9a37e
2 changed files with 27 additions and 0 deletions

View File

@ -98,6 +98,11 @@ music_user_data_directory: "{{ system_var_data_directory }}/{{ music_user_name }
music_user_home_dataset: "rpool{{ music_user_home_directory }}"
music_user_data_dataset: "rpool{{ music_user_data_directory }}"
music_user_backups_snapshots_data_dataset: "\
{{ system_backups_snapshots_data_dataset }}/{{ music_user_name }}"
music_user_backups_snapshots_recursive: true
music_user_backups_snapshots_skip_parent: true
# --------------------------------------------------------------------------------------------------
# services
# --------------------------------------------------------------------------------------------------

View File

@ -13,5 +13,27 @@
{% else %}\
~/.ssh/debian-virt.pub\
{% endif %}"
- role: "backups/snapshots/user"
vars:
backups_snapshots_user_name: "{{ music_user_name }}"
backups_snapshots_user_data_dataset: "{{ music_user_data_dataset }}"
backups_snapshots_user_backup_dataset: "{{ music_user_backups_snapshots_data_dataset }}"
backups_snapshots_user_recursive: "{{ music_user_backups_snapshots_recursive }}"
backups_snapshots_user_skip_parent: "{{ music_user_backups_snapshots_skip_parent }}"
tags:
- "music:backups"
- "music:backups:snapshots"
- "music:backups:snapshots:user"
- role: "backups/restic/user"
vars:
backups_restic_user_name: "{{ music_user_name }}"
backups_restic_user_use_dataset: "{{ 'zfs' in group_names }}"
backups_restic_user_data_dataset: "{{ music_user_data_dataset }}"
backups_restic_user_data_directory: "{{ music_user_data_directory }}"
backups_restic_user_aws_bucket_prefix: "the-nine-worlds---{{ music_user_name }}"
tags:
- "music:backups"
- "music:backups:restic"
- "music:backups:restic:user"
# - role: "music/org"
# tags: "music:org"