---

mv_packages:
  - git
  - rsync

mv_repo_url: https://mirismanager.ubicast.eu/github.com/UbiCastTeam/rsync-time-backup
mv_repo_path: /usr/local/share/rsync-time-backup
mv_repo_update: false

mv_script_path: /usr/local/sbin/rsync_tmbackup

mv_mailer_enabled: true
mv_mailer_script_path: /usr/local/sbin/systemd-mailer
mv_mailer_from: backup <backup@{{ ansible_fqdn }}>
mv_mailer_to: sysadmin+backup@ubicast.eu
mv_mailer_service_name: status-email-admin
mv_mailer_service_path: /etc/systemd/system/{{ mv_mailer_service_name }}@.service

mv_base_dir: /backup

# mv_backup defaults
mv_backup_name: self
mv_backup_timer_calendar: "*-*-* 22:00:00"
mv_rsync_flags: -D --numeric-ids --links --hard-links --one-file-system --itemize-changes --times --recursive --perms --owner --group --stats --human-readable --timeout 30
mv_retention_strategy: "1:1 30:0"
mv_src_dir: /etc
mv_dest_dir: "{{ mv_base_dir }}/{{ mv_backup_name }}"
mv_exclude_list_name: excluded_patterns
mv_exclude_list_items:
  - "- .zfs/"
  - "- *.log"
  - "- *.pyc"
  - "- *.swp"
  - "- *.pid"
  - "- *chunked_*/"
  - "- __pycache__/"
  - "- apt-cacher-ng/"
  - "- */msinstance-disabled/"
  - "- *.lock"
  - "- .nfs*"
  - "- *.m3u8"
  - "- *.ts"
  - "- msmonitor/storage-logs/"

# default backup list
mv_backup:
  - name: "{{ mv_backup_name }}"
    timer_calendar: "{{ mv_backup_timer_calendar }}"
    rsync_flags: "{{ mv_rsync_flags }}"
    retention_strategy: "{{ mv_retention_strategy }}"
    src_host:
    src_dir: "{{ mv_src_dir }}"
    dest_host:
    dest_dir: "{{ mv_dest_dir }}"
    exclude_list_name: "{{ mv_exclude_list_name }}"
    exclude_list_items: "{{ mv_exclude_list_items }}"

# firewall rules
mv_firewall_enabled: true
mv_ferm_rules_filename: vault
mv_ferm_input_rules: []
mv_ferm_output_rules:
  - proto:
      - tcp
    dport:
      - 22
mv_ferm_global_settings:

...
