Skip to content

backing up all metadata for the plugin #47

@pasha-19

Description

@pasha-19

My goal is to be able to snapshot my jellyfin media and "metadata" to be able to rebuild my server on a new hardware instance if required.

I was hoping moving the jellyfin metadata directory such that it would be in the TrueNAS server's snapshot of a jellyfin dataset would be sufficient. I have determined that it is not. Particularly I have a known interest /var/db/jellyfinserver/collections, playlists and possibly Scheduled Tasks. I may well from other reading be interested in most of the /var/db/jellyfinserver directory (possibly excluding cache, if there and transcodes. Not your issue but I spent a week trying to mount my media directory into the jail (somewhat a newbie). Made the error of trying to mount a ZFS dataset with nested ZFS datasets -- took a week to find the one liner in the TrueNAS documentation that said that was a no-no. PS: I succeeded at knowing about mountpoints from installing a competing product. Your plugin not having predetermined and identified mountpoints slowed my progress somewhat. Not really your issue; other than I needed to figure out if it was necessary to create the empty directory using the jail shell before mounting the desired file. Maybe you could save me some time or maybe this affects your implementation of the plugin; I am not sure. I am considering creating a jellyfin dataset with nested datasets the first has what I call metadata (as the target of a mountpoint for /var/db/jellyfinserver) if that can be created before the install of your plugin and the initial population of that set of directories; the other dataset being my media files (mapped as just about anything reasonable like /srv/jellyfin (traditional) with /jellyfin also being an option). Using the jellyfin configuration options to relocate cache and transcodes outside the snapshot range is clearly something I can do; if necessary and desirable. If I cannot "premount" the /var/db/jellyfinserver dataset in advance perhaps the alternative is to stop the plugin & jail and recursively MOVE /var/db/jellyfinserver/* elsewhere; then perform the mount then recursively copy the previously moved contents back.

In the end, if I can do what I want and implement it will my TrueNAS server snapshot will enable me potentially to restore my entire configuration to your plugin (assuming the software version matches)? In addition selectively copying files off of such a backup should limit my requirements to configure a new jellyfin server on another platform and if I can match the media library path I should be able to restore items like collections and playlists based on the files in the snapshotted backup (along with the nfo files and images in the media directory.

Any suggestions about things I have missed would be appreciated.

Thanks for reading this; I hope it is not an abuse of this issue reporting mechanism.

My TrueNAS server has a AMD Ryzen 5 5600G with Radeon Graphics, if this is of interest in terms of hardware acceleration and someone will provide a testing procedure I could provide results, if needed (can switch threads if desired too)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions