If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Migration from Windows to FreeNAS

mrbill700mrbill700 Posts: 3Members, Plex Pass Plex Pass

I have FreeNAS now installed and running in a jail with it now able to see my media folders I was using for my Plex on a windows machine. How do I migrate the server data into the jail? will this be command line or drag-and-drop? I have the general Idea, from the Plex documentation, what files to copy over, but I am not entirely clear on how to copy them into my new plex jail.
Comments, suggestions, or links would be appreciated.
Thanks

Best Answer

  • mrbill700mrbill700 Posts: 3Members, Plex Pass Plex Pass
    Accepted Answer

    I have migrated and have very few problems remaining.
    While I knew where I wanted to move stuff I did not know how. I installed Plex manually in a jail within FreeNAS. The mount area for this jail was different than the listed documentation here: https://support.plex.tv/hc/en-us/articles/202915258-Where-is-the-Plex-Media-Server-data-directory-located-

    FreeBSD
    /usr/local/plexdata/Plex Media Server/

    FreeNAS
    ${JAIL_ROOT}/var/db/plexdata/Plex Media Server/

    This required me to find it manually. This is achieved through the FreeNAS Shell or SSH. This requires commands.
    I transferred my windows /Plex Media Server/ files onto a FreeNAS share via drag and drop. Then I used the rsync command to move it into the jail once I found the location using the cd command. Mine was located something like this:

    /jails/plex/usr/local/plexdata-plexpass/Plex\ Media\ Server/

    I used the rm -rf command to remove the /Plex Media Server/ folder then created a new one.Then I used rsync to transfer the folder contents from my samba share into the plex jail. Something like this example: https://forums.freenas.org/index.php?threads/clarify-sugest-copy-command-to-use-in-shell.10606/

    "rsync -Pva /mnt/volume1/admin /mnt/bin1/".
    The "-P" means that you can resume the transfer if you need to stop for some
    reason, and also prints status info,
    The "-a" is similar to the "-a" of "cp".
    The "-v" just spits out more info during the transfer.

    Then I had to change ownership permissions using chown command for plex to "see" these folders. I just matched the owner:group of the other folders in the parent directory with the ls -l command. I used something like this example:
    chown -R mark:sales /path/to/directory
    https://www.linuxnix.com/chown-command-linuxunix-explained-examples/

    I restarted the Plex jail after following the "move install" process and viola it worked as described. (https://support.plex.tv/hc/en-us/articles/201370363-Move-an-Install-to-Another-System)

    This article was super important to learning how to talk to my server: http://www.ws.afnog.org/afnog2006/e0/ha/freebsd/freebsdref1.pdf

    Thats the general process I was looking to figure out. Thanks for general assistance.

Answers

  • mikec_ptmikec_pt Posts: 595Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    It really depends on you're setup on both windows and the jail, or even the FreeNAS host.

    Say you have some sort of share in one of the side (SMB, NFS, i.e) then drag and drop would do it.

    But you would say at most you should be able to copy over the "plex data" dir using ssh.

    If you know the files you need to move than I guess you could also google how to move data from windows to a FreeNAS jail.

    there's also a similar post here -> https://forums.plex.tv/discussion/209934/moving-from-windows-to-freenas

  • mrbill700mrbill700 Posts: 3Members, Plex Pass Plex Pass
    Accepted Answer

    I have migrated and have very few problems remaining.
    While I knew where I wanted to move stuff I did not know how. I installed Plex manually in a jail within FreeNAS. The mount area for this jail was different than the listed documentation here: https://support.plex.tv/hc/en-us/articles/202915258-Where-is-the-Plex-Media-Server-data-directory-located-

    FreeBSD
    /usr/local/plexdata/Plex Media Server/

    FreeNAS
    ${JAIL_ROOT}/var/db/plexdata/Plex Media Server/

    This required me to find it manually. This is achieved through the FreeNAS Shell or SSH. This requires commands.
    I transferred my windows /Plex Media Server/ files onto a FreeNAS share via drag and drop. Then I used the rsync command to move it into the jail once I found the location using the cd command. Mine was located something like this:

    /jails/plex/usr/local/plexdata-plexpass/Plex\ Media\ Server/

    I used the rm -rf command to remove the /Plex Media Server/ folder then created a new one.Then I used rsync to transfer the folder contents from my samba share into the plex jail. Something like this example: https://forums.freenas.org/index.php?threads/clarify-sugest-copy-command-to-use-in-shell.10606/

    "rsync -Pva /mnt/volume1/admin /mnt/bin1/".
    The "-P" means that you can resume the transfer if you need to stop for some
    reason, and also prints status info,
    The "-a" is similar to the "-a" of "cp".
    The "-v" just spits out more info during the transfer.

    Then I had to change ownership permissions using chown command for plex to "see" these folders. I just matched the owner:group of the other folders in the parent directory with the ls -l command. I used something like this example:
    chown -R mark:sales /path/to/directory
    https://www.linuxnix.com/chown-command-linuxunix-explained-examples/

    I restarted the Plex jail after following the "move install" process and viola it worked as described. (https://support.plex.tv/hc/en-us/articles/201370363-Move-an-Install-to-Another-System)

    This article was super important to learning how to talk to my server: http://www.ws.afnog.org/afnog2006/e0/ha/freebsd/freebsdref1.pdf

    Thats the general process I was looking to figure out. Thanks for general assistance.

  • mrbill700mrbill700 Posts: 3Members, Plex Pass Plex Pass

    The only bug I have remaining is with the camera uploads. It will not allow me to continue backing up, as it is connected to a different Server. So this is the only hiccup remaining, other wise all is peachy.

Sign In or Register to comment.