Jellyfin Backup Role¶
Creates on-host Jellyfin backups (data, config, systemd unit, Traefik config, optional logs) with optional archive fetch to the controller.
Features¶
Stops Jellyfin for a consistent copy, then rsyncs data/config/logs into a timestamped directory under
{{ jellyfin_backup_root }}.Captures the installed package version in a manifest for auditing.
Produces a
.tar.gzarchive by default and fetches it to{{ jellyfin_backup_local_dir }}when enabled.
Usage¶
- hosts: media
become: true
roles:
- role: local.ops_library.jellyfin_backup
vars:
jellyfin_backup_prefix: "{{ backup_prefix | default('manual') }}"
jellyfin_backup_fetch_local: true
Key Variables¶
Variable |
Default |
Description |
|---|---|---|
|
|
Remote backup root. |
|
|
Prefix for backup directory/archive names. |
|
|
Create compressed archive of the backup directory. |
|
|
Fetch archive to the controller. |
|
|
Stop Jellyfin during backup for data consistency. |
|
|
Include |
|
|
Keep this many most recent archives (older ones are pruned). |
See defaults/main.yml and roles/jellyfin_shared/defaults/main.yml for the full reference.