Navidrome Backup Role¶
Creates on-host Navidrome backups (data, config, systemd unit, Traefik config, optional logs) with optional archive fetch to the controller.
Features¶
Stops Navidrome for a consistent copy, then rsyncs data/config/logs into a timestamped directory under
{{ navidrome_backup_root }}.Generates a manifest capturing version, paths, and archive name.
Produces a
.tar.gzarchive by default and fetches it to{{ navidrome_backup_local_dir }}when enabled.
Usage¶
- hosts: media
become: true
roles:
- role: local.ops_library.navidrome_backup
vars:
navidrome_backup_prefix: "{{ backup_prefix | default('manual') }}"
navidrome_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 Navidrome during backup for SQLite safety. |
|
|
Include |
|
|
Keep this many most recent archives (older ones are pruned). |
See defaults/main.yml and roles/navidrome_shared/defaults/main.yml for the full reference.