Skip to content

Instantly share code, notes, and snippets.

@mistic100
Created April 16, 2026 20:07
Show Gist options
  • Select an option

  • Save mistic100/2c510f1eccd26acf25a1461ae463c385 to your computer and use it in GitHub Desktop.

Select an option

Save mistic100/2c510f1eccd26acf25a1461ae463c385 to your computer and use it in GitHub Desktop.

TrueNAS Jellyfin cloud backup

This is a way to do an automated cloud backup of your Jellyfin database using TrueNAS Cloud Sync Tasks. Requires Jellyfin 10.10 or above.

  1. Create a PUSH+SYNC task and selected your prefered cloud remote
  2. Select /<jellyfin-dataset>/data/backups as source
  3. Add a pre-script to create the backup
    curl -H "Content-Type: application/json" \
      -d '{"Database":true,"Metadata":false,"Trickplay":false,"Subtitles":false}' \
      "http://<jellyfin-server>/Backup/Create?ApiKey=<jellyfin-token>"
  4. Add a post-script to remove the backup (this could be modified to keep X backups)
    rm -f /<jellyfin-dataset>/data/backups/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment