How to backup and restore PMS settings/metadata?

Server Version#: 1.25.4
Player Version#: 4.74.1
QNAP NAS TS-251+

After being hit with the deadbolt ransomware, general advice is to wipe the drives clean, reinstall the firmware and copy back the data.
From the Windows Explorer where I can access the NAS’s shared folders, I had started copying the Plex data folder but saw I was in for…±14 hours to do that!? Then I’d probably have the same when restoring it!?
Has anyone figured out a better way of doing this…some tip, trick, whatever…help!? :roll_eyes:

And once it’s backed up, how do you restore it? I read on a Plex help page that it’s recommend to place the data folder back where it was previously (which in my case would mean, recreate that folder structure) and then install PMS again and…all should be ok? I’m just surprised at the order in which it’s done? I would have thought you first install PMS, then the backup because I fear PMS might erase the backup during install to create a clean and new data folder…am I wrong?
Thanks!

You don’t place the data then install. You install the package then, with PMS stopped, restore the backup over the top of the “empty” data which the installer created.

Hi Chuck,
So, I guess I need to wait for version 1.19.5 to be released? Any idea when?

Ok…well, then I guess it’s best you update this page which says:

Restoring the Backup
If you need to restore your backed up data, it’s as simple as putting the main data back in the original location (as noted above). Then, restore the “additional settings” mentioned above, which would be restoring the registry data on Windows or the .plist file for OS X.

After you install the backed up data, you can re-install the Plex Media Server application.

EDIT: Oops! I know realise that we are of course beyond v1.19.5. So I guess the text you quoted is basically saying that, as of that version, one can simply copy that data folder without the need to access it through SSH as it was before, right? Well I knew that of course since that is the object of my post…I even mention copying from the Windows Explorer so…

@Chumbo

Those support articles are too generic and don’t apply to QNAP or Synology

On QNAP, you can install PMS on any volume so it does you absolutely no good to restore your metadata to one volume (e.g. CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library)

when you QPKG is installed on CACHEDEV2_DATA

See my point as to why you use the PlexData shared folder to make that mapping for you AFTER you install PMS?

I’m confused by a few things you said…

So the gist of that is that I can restore the data folder anywhere I want, correct?

See my point as to why you use the PlexData shared folder to make that mapping for you AFTER you install PMS?

Actually…no I don’t? Don’t understand what you’re saying?

He means, that if you use the build in option to create a share, it’ll automatically work regardless of where you installed your Plex Server

See: Qnap faq.....read me first! - #5 by ChuckPa

Ok, thanks.

I just finished zipping the data folder and I’m getting denied access to some files despite having stopped the server on the NAS.
How should I go about it?

@Chumbo

Use the real admin account. Do not use an administrative user account.

Administrative user accounts do not have any real privileges in the underlying Linux layer.

I don’t understand? There’s only one account on my PC and it has the admin privileges. Can you please clarify?

EDIT: Got it. You were talking about being logged in my NAS’ OS with the admin account but the whole time I’ve been describing my problem copying it from the Windows PC so…

You don’t do the backup over the LAN by copying the files to/from your PC.
Doing so will:

  1. Take an incredibly long time
  2. Lose all the date/time stamps on the files
  3. Lose the ownership and other file attributes

To do the backup

  1. Stop Plex
  2. Open PlexData → Plex Media Server in File Station
  3. Highlight all the files & directories listed (checkbox at the top)
  4. Right-Click → Compress
  5. Give it whatever name you want for the ZIP file
  6. Click OK to start creating the ZIP file
  7. When it completes, the ZIP will be the perfect backup of all the data
  8. You may now copy the ZIP file over the LAN to Windows if you wish.

Damn! I’m glad I asked and happened to detail how I was doing it…Is this information anywhere? I certainly couldn’t find it. I hope others will be aware of this before doing their backups like I did.
Thanks,

QNAP FAQ

I linked to it in post 9 :wink:

My bad…that goes to show…always read the FAQ! :roll_eyes:
Thanks, I should be good now!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.