Jellyfin Restore Role¶
Restores Jellyfin from an on-host backup archive (data, config, systemd unit, Traefik config, logs) and brings the service back online.
Features¶
Selects a specific archive or the latest available under
{{ jellyfin_restore_root }}.Unpacks the payload, rsyncs data/config/logs back into place, and reloads systemd/Traefik when needed.
Ensures Jellyfin directories and permissions are reset before restarting the service.
Usage¶
- hosts: media
become: true
roles:
- role: local.ops_library.jellyfin_restore
vars:
jellyfin_restore_archive: "{{ archive | default('latest') }}"
Key Variables¶
Variable |
Default |
Description |
|---|---|---|
|
|
Archive filename or |
|
|
Directory containing backup archives. |
|
|
Restart (vs start) the service after restore. |
|
|
Remove the staging directory after success. |
|
|
Temporary unpack location; override if restores exceed |
See defaults/main.yml and roles/jellyfin_shared/defaults/main.yml for the full variable reference.