Backing Up QNAS Server

Server Version#:1.30.0

I recently (accidentally) deleted the Plex server installation on my QNAS device and realised I have no way of restoring Plex after this mistake. The rebuild is taking forever to get all of my categories, poster images and matches re-instated.

My media files are all backed up on another machine so I am not looking for a “complete” backup procedure, simply how to reinstate the server with all of my customisations.

I have searched the forum and (not being Linux savvy) have found it a little bit intimidating to try and put together a simple back up and restore operation in case this happens again.

Is there a “relatively” simple method (or script) out there that I can adopt to give me a secure backup and restore that will keep all of my customisations?

Apologies in advance if someone points me at a post I didn’t manage to find …

This will give you a shared folder (in FileStation) with which you can make a ZIP of the Plex Media Server directory (a backup)

1 Like

Thanks Chuck - I “think” I understand it but can I check I have this in “idiot proof” thinking!

  1. There is a shared folder called “PlexData” which I can see if I link to the QNAP from my Windows PC.
  2. In my Windows environment I would simply back up that folder (Presumably after stopping the service on the QNAP box)?
  3. If I then removed the Plex App (by mistake for example) - would I just reinstall it, stop the service and then overwrite this shared folder from my saved copy?

Thanks for reply and advice.

Pretty much, yup.

On my QNAP I have that PlexData Share setup and then I use HBS3 (Hybrid Backup Sync 3) on my QNAP to run a scheduled backup of that folder to my backup location (in my case my old Synology via rsync). That might work for ya’ as well.

Edit: I’m backing up the Plex Media Server folder in the PlexData share.

When I need a backup from the QNAP (I’s a tertiary server), I get into PlexData, Right-Click Plex Media Server and compress it to a tar.gz (preserve Linux filesystem info which ZIP does not)

PlexData is a mountpoint / placeholder.

What you want to backup is the Plex Media Server within it.

Not all operating systems / tools will automatically traverse from PlexData → Plex Media Server. Test Test Test

1 Like

Thanks Chuck for replying. If I go into the PlexData folder from within File Station, select Plex Media Server, then right click I see an option that says “Compress (Zip)”. This offers zip or 7z options. Trying both of those results in a background task failure. (Appears as a flasing exclamation point at the top of File Station). So my question is how to get it as a tar file and also how to compress it??? I did try compressing the file from a Windows environment but (as you stated), that does not work.

Failure ? Why? Were you not signed in as the admin user ?

PMS runs as admin (0:0) on QNAP.
If you’re there with a non-root account, you won’t have sufficient privilege.

One way of doing it is, as mentioned, with HBS3 (rsync) which runs as admin (0:0)

another is to SSH into it,
sudo bash
then go make the backup on the command line (Linux style)

1 Like

Yes, I was signed in as Admin. There is no option to compress to a TAR file either. When you execute the Compress option, all you get is a flashing ! at the top of the screen and drilling into it says Background Task Failure with no other explanation.
I will try the HBS3 suggestion - my first question on this thread was if there was a “simple” way to do this - guess the answer (sadly) is no for us non linux users …

The “simplest” way –

  1. as admin user
  2. Stop PMS (so the database is not active and closed)
  3. Make a ZIP of the Plex Media Server folder in FileStation
    – This should take some time to complete (based on number of files indexed)
  4. Make certain you don’t have a trivial sized zip
  5. Copy/move the Plex Media Server.zip file to other storage

This is as “simple” as it gets
If you try to pull it over the network, it will take forever.
(PMS has thousands of tiny files it keeps for metadata)

When you restore it, you must do it in reverse (also as admin user)
use the Extract here option. (As shown in the FAQ)

1 Like

Hi,

I have been trying the method you outlined here and I have a few issues. Firstly, I tried to use the Compress function in File Station from the Plex Media Server folder. Just as a test I tried to compress a single small file (Setup Plex.html). The operation gets handed over to the Background Task manager and fails. I then tried to compress the Logs folder and that worked and produced a zip file as expected. So my first concern is whether a compress operation will include all files?

Next I highlighted all of the files in the PMS folder and tried a compress operation. The progress bar took about 10 minutes to traverse and then hung at 99%. The file counter is showing 0/13 files and it says the file size estimate is approx. 56kb.

If I the look at the shared folder from my windows desktop, it is showing a backup file has been created but the size of this is approx. 13Gb. From this I assume the backup is trying to include my media files but in reading your other posts you say that the backup of the PMS server is separate from that of the media files (which is what I would want).

Could you please confirm for me that the zip backup you specify is actually only the PMS server and if so, why is it trying to create a 13Gb file???

Thanks for any assistance you can offer.

@Caprigo

I went back through the software change log.

My redesign for PlexData shared folder were implemented in PMS 1.41.4.9320-e01869d41

The method I selected uses the same technique QNAP does for mounting our “DataVol” volumes.

As verification, I’m performing a backup through PlexData.
This is what I see

– waiting a while –

It will take time to complete (this is an ARMv8 CPU) but it will be a full ZIP backup of “Plex Media Server” directory.

Backup completed.

1 of 1 items (Plex Media Server) added to ZIP

Size matches

Thanks Chuck - that works. However, if I try and open the zip folder on the NAS, it starts a download of the file onto my Windows PC. If I try and open that file on the Windows PC (to check contents), it says the file is invalid and won’t open. Is that expected?

If that is what you expect, then is it OK to store the zip file on a windows machine and then copy it back ? Will the file integrity be preserved?

What you want is to COPY the ZIP (which is Drag&Drop -or-COPY at the command line)

If you double-click it, I have no idea what Windows will do.
( I don’t have any Windows machines. I’m 100% Linux)

When you upload the ZIP to that same spot,
then Extract Here,
It will put it all back as it was

Thanks for the reply. I did actually directly copy the file across to my Windows PC using the network as well but get the same result “invalid File”. So, I then created a test folder on my QNAP server, moved the zip file to there and then tried to extract the contents to prove it is a valid file. In this case, the extract process is passed over to the Task Manager and it fails with no explanation.

Is it the case that this zip file will “only” extract from within the folder from where it was created? This is not my experience of zip files but not sure quite what is going on and whether I can trust this file as a secure backup. I appreciate the only real way to test is to ditch the current PMS and then try a backup but if that fails I’ve got hours of work re-setting up my Plex installation.

@Caprigo

Are you logging into the QNAP using the ‘admin’ username or something else ?

What happens when you Right-Click the ZIP file and select “Download” ?
( You should be able to take this ZIP file and extract it into any test folder on your PC. It will treat it as datafiles )

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