Migrate plex server from windows to linux without having to scan all libraries

I had kept a backup of plex on my linux server which I restored. According to what we know, it doesn’t matter on which server the status of reading completed should be displayed.

I’m a little early in my tests, but at first glance in everything I’ve tried, the only thing that worked was the state of a movie seen in full which appeared as seen actually on the other server. For local plex users I’m not convinced it works, as the same test but scrolling quickly to the end was inconclusive. For the tv series and movies, one thing is certain, we do not see the state where the episodes or movies are rendered (for example an episode not completed) for the rest to know what it will do when an episode is completed I will see if we will have the option to continue the series or not. if it will have to be picked up manually to see where it has gone…

All this is in the perspective that we would obviously have no plex backup and that we would have to start fresh. In case you go from windows to windows, or from linux to linux with a data migration would be very easy to do. In the case of a migration from windows to linux or the opposite, a migration, followed by a complete scan of the libraries after modifying the paths of the libraries would be the most viable solution, but the longest.

Could this script work on windows eventually?

For the episodes of the tv series, that’s what I thought, they synchronize well on the other server once it’s over, however, we don’t have the option in the homepage to continue it, we have to go look for the series to continue to the next episode to then have it in the home for the rest. Here is that concluded the tests that I had to do, overall it is an interesting function, but which does not work with the local users of my plex server.

I have no Windows development skills.
A friend of mine is attempting to port (rewrite) it to work , i think he said, “powershell” for windows.

I do wonder if it would work, IF I understand the relationship correctly, Windows Services Linux where you should (?) have a proper /bin/sh shell ??

The last thing I did with Windows was to wash them :slight_smile:

If you really need it, you can inspect the script and copy out + translate the commands to work in a Windows environment… If you’re at that level … the rest of command twiddling is easy.

the idea of a script which takes into consideration the reading history and which would be as compatible with windows as linux would be a very interesting advantage and would greatly facilitate the migration from one system to another taking into consideration that the 2 servers would have their libraries up to date (Linux and windows) I may see that one day: )

All that said and given,

Per the topic here:

“Migrate plex server from windows to linux without having to scan all libraries”

will never happen because of how pathnames are defined.

There really isn’t any point of beating this further.
At least one scan, to find the new path (as seen from the Linux perspective)

IS REQUIRED

End.

I’m out.