Fallenbagel / jellyseerr

Fork of overseerr for jellyfin support.
https://docs.jellyseerr.dev/
MIT License
3.54k stars 220 forks source link

[Feature Request] Implement backup api endpoint #106

Open tommyalatalo opened 2 years ago

tommyalatalo commented 2 years ago

Description

Lidarr/Sonarr/Radarr have api/command endpoints which allow the user to dump a backup of the service settings. This would be very nice to have in jellyseerr as well so that it's possible to schedule periodic backups programatically.

An example of running the api/command to execute a backup with httpie:

      config {
        image = "alpine/httpie"

        args = [
          "--ignore-stdin",
          "POST",
          "http://sonarr.service.consul:${SONARR_PORT}/api/command",
          "X-Api-Key:${SONARR_API_KEY}",
          "name=Backup",
        ]
      }

Desired Behavior

Implement the api/command endpoint as mentioned in the description so that backups can be made on-demand by sending a POST request.

Additional Context

No response

Code of Conduct

Fallenbagel commented 2 years ago

This sounds like a good feature request for Overseerr as it is a core overseerr functionality rather than specific to jellyfin/emby 🤔 Once then integrate I'll pull it to jellyseerr :D