MeTube Backup¶
MeTube Backup Role¶
Backs up MeTube state/config/systemd/Traefik artifacts into timestamped directories (and tarballs) under {{ metube_backup_root }}.
Stops the
{{ metube_service_name }}service for consistency (toggle viametube_backup_stop_service).Copies
{{ metube_state_dir }},{{ metube_env_file }}, optional systemd unit and Traefik config.Emits a manifest and optional
*.tar.gzarchive, fetchable to the controller whenmetube_backup_fetch_localis true.
Usage example:
- hosts: macmini
become: true
roles:
- role: local.ops_library.metube_backup
vars:
metube_backup_prefix: "{{ backup_prefix | default('manual') }}"