Tunarr includes a built-in backup system that creates compressed archives of your configuration, database, and media assets. Backups can run on an automatic schedule or be triggered manually at any time. Backup settings are available under Settings > System > Backup in the Tunarr web UI.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/chrisbenincasa/tunarr/llms.txt
Use this file to discover all available pages before exploring further.
What Gets Backed Up
A Tunarr backup archive includes all the files needed to fully restore your installation — channels, programs, artwork, and settings:| Item | Description |
|---|---|
db.db | SQLite database containing channels, programs, and configuration |
settings.json | System settings and media source configurations |
channel-lineups/ | Channel lineup data and M3U files |
images/ | Channel logos, artwork, and thumbnails |
cache/ | Cached subtitles, posters, banners, fanart, and watermarks |
ms-snapshots/ | Meilisearch index snapshots (optional, see below) |
*.xml | XMLTV output files |
data.ms) is not included in backups by default. Tunarr rebuilds this index automatically on startup, so there is no need to back it up. See Excluding Search Snapshots for details.
Backup Configuration
Options
| Option | Default | Description |
|---|---|---|
| Enabled | true | Enable or disable scheduled automatic backups |
| Schedule | Daily at 4:00 AM | When to run automatic backups |
| Output Path | {data directory}/backups/ | Where backup files are stored on disk |
| Archive Format | tar | Archive format: tar or zip |
| Gzip Compression | false | Enable gzip compression (tar archives only) |
| Max Backups | 3 | Number of backup files to retain before deleting the oldest |
File Naming
Backup files are named using a timestamp:tunarr-backup-20250118_040000.tar.gz
Scheduling Backups
Backups can be scheduled in two ways:Interval-Based Schedule
Run backups at a regular interval, such as every N hours or every N days. For example: “Every 1 day at 4:00 AM.”Cron-Based Schedule
Use a cron expression for more flexible scheduling:Manual Backup
Via Web UI
Navigate to Settings > System > Backup and click the Backup Now button to trigger an immediate backup.Via API
Trigger a backup using the tasks API:Backup Retention
When a new backup is created and the total number of backup files exceeds themaxBackups setting, Tunarr automatically deletes the oldest backup files. This prevents your backup directory from consuming unbounded disk space over time. Adjust the Max Backups setting to match your desired number of recovery points.
Restore Process
Stop Tunarr
Ensure the Tunarr server is fully stopped before making any changes to the data directory. For Docker users, stop the container:
Locate Your Data Directory
Find the Tunarr data directory on your system:
| Platform | Path |
|---|---|
| Docker | The host path you mounted to /config/tunarr |
| Windows | %APPDATA%\tunarr |
| macOS | ~/Library/Preferences/tunarr |
| Linux | ~/.local/share/tunarr |
Copy Files to the Data Directory
Copy the extracted files into your Tunarr data directory. At minimum, restore the database and settings files. Restore optional directories as needed:
Full Docker Restore Example
Excluding Search Snapshots
Meilisearch index snapshots (ms-snapshots/) can be large. Since Tunarr automatically rebuilds the search index on startup, there is no need to include snapshots in your backups. To exclude them, set the following environment variable:
There is a known issue in Meilisearch where snapshots do not work correctly on Windows. Windows users should disable Meilisearch snapshots until this is resolved upstream.
Excluding data.ms from Proxmox Backup Server
The data.ms directory contains the Meilisearch search index and can be several gigabytes in size. Since Tunarr rebuilds this index automatically on startup, there is no need to include it in Proxmox Backup Server (PBS) jobs.
PBS uses .pxarexclude files (similar to .gitignore) to exclude paths from backup jobs. To exclude the data.ms directory, create or edit a .pxarexclude file in your Tunarr data directory:
data.ms directory in all future backup jobs that include that path. No PBS job reconfiguration is required — the exclusion is applied automatically when PBS encounters the .pxarexclude file.
Backup Storage Locations
Default Location
Backups are stored in thebackups/ subdirectory of your Tunarr data directory:
| Platform | Default Path |
|---|---|
| Docker | /config/tunarr/backups/ |
| Windows | %APPDATA%\tunarr\backups\ |
| macOS | ~/Library/Preferences/tunarr/backups/ |
| Linux | ~/.local/share/tunarr/backups/ |
