Migration from Pi to QNAP

I have a 2.5/5 Gbps USB3 NIC for my Syno.

I get about 2.4 Gbps from it (a lowly Atom C2538 - DS1815). It’s better than gigabit so it’s all good,

It should be viable for the Pi as well if it has USB 3 (even better if USB 3.2)

There are other vendors but this seemed the most flexible.

Thanks and added to my Amazon list. I like the option got USB-A or USB-C connection.

Was about to respond.

You remembered the . at the end?

So I did miss the . at the end. After some looking online I modified the string :slight_smile: to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server# tar cf plexbackup.tar /sdc1/PlexData/ and it is showing >|. So may have done a bad thing.

The form of the command when using tar cf is

tar cf /path/to/where/tar/file/goes <source path to put into tar>

  1. You cannot use /dev/sdc1/Filename. /dev/sdc1 is the raw partition.
    If you write to it, you’ll wipe out all the formatting and any other contents on that partition.

2 All paths which begin with /dev are raw device. You want to use where the raw device is Mounted On

Therefore

cd "/var/lib/plexmediaserver/Library/Application Support"
tar cf /mounted/path/PlexBackup.tar .

One question that I have potential concerns about. The Pi host I am moving from had 3 different media folders (media, media2 & media3) as there were three separate drives used. When I migrated the data to the QNAP I put it all in a single media folder. Does that matter or do I need to have the data in a exact clone?

So to create the backup I would use?
cd “/var/lib/plexmediaserver/Library/Application Support”
tar cf /sdc1/PlexData/PlexBackup.tar .

or do I use the absolute path
cd “/var/lib/plexmediaserver/Library/Application Support”
tar cf /srv/dev-disk-by-uuid-14458da1-157b-4bd6-9e3c-707832c5491e/PlexData/PlexBackup.tar .

Sorry to seem so dense, still very new to the Linux world

when you type df, is /srv/dev-disk-by-uuid-14458da1-157b-4bd6-9e3c-707832c5491e/ listed in the right column (under “Mounted on”) ?

This sounds like proxmox ?

yes this is what I see and the PlexData share is on the sdc1. I have Open Media Vault Running on the Pi and is how I managed the Pi and storage.

This is the Mounted Path. That’s what you should be using.

Column 1 is the device colum. (it tells where the file system comes from)
Column 6 is where it’s mounted at. This is what we use on the command line

Thanks and what I figured based off your last response.
Backup completed and copied over to the public share. Now having issue extracting tar.

It appears to execute the command and after a delay returns to the prompt but when viewing the preferences file it isn’t there.

when you did the extracton..
did you first

  1. Get into the package storage area
cd /share/*/.qpkg/Ple*/Li*
  1. Extract
tar xf /share/Public/PlexBackup.tar
  1. remaining commands.

Like this?

I did the process noted above but looks like that is creating a PlexMediaServer in the PlexMediaServer folder. I am cleaning that out and will go up a level and run again.

ok got that cleaned up and paths look right (see below) but Plex server is still showing offline from my computer or any other device and cannot connect to it when accessing it direct from the QNAP Plex App (page cannot be displayed).

Thoughts?

Sorry if I gave you the full path incorrectly

Since it’s gotten busted up

  1. cd /share/*/.qpkg/Ple*/Li* ← just above the server data directory
  2. rm -rf "Plex Media Server" ← clean up the mess
  3. tar xf /share/Public/plexbackup.tar ← extract again
  4. chown -R 0:0 "./Plex Media Server" (fix ownership)

That will put things where they belong

No worries and very much appreciate the help.
I ran the batch of commands and server shows started on QNAP (old Pi host powered down) but not reachable.
The QNAP is on the same VLan as the old host and my laptop. I can web into the QNAP and SSH to it and reach shares.
Not sure what is causing the Plex server not to be reachable

  1. if you need it, here’s the shell tool to reclaim it
  1. with logs stopped, grab a tar.gz and attach them?

Ran the reclaim and it went through with the final output of

Claim completed without errors
Starting PMS
PlexMediaServer is disabled.
Complete.

What command should I run to pull the logs needed?
Also do you mean the PMS stopped or Logs? If logs how do I turn that off since I cannot connect to the instance?

  1. App Center - stop plex using the GUI
  2. From the shell, cd /share/*/.qpkg/Ple*/Li*/Ple*
  3. Make the logs, tar cf /share/Public/PlexLogs.tar ./Logs
  4. Using FileStation, download from Public
  5. attach here :slight_smile:

File is too big. Max is 8MB and file is 11MB