Schedule Database Backup to USB SSD - Synology DSM 7

Server Version#: 1.24.0.4930

After upgrading to DSM 7, I’m aware of the database relocation, but wondering if anyone has any suggestions on the best way to backup the database to an external USB SSD plugged into my Synology DS720+. I used to just have the scheduled job set up when I used DSM 6, but now that the database is only accessible via SSH, is there a good way to script backing up the DB and keeping a handful of versions?

I currently just use the SSD as the transcoding location but would like to store some historical DB backups there as well as a failsafe. Thanks in advance!

Nice, thanks! I’ll probably hold off until it is officially changed in the upcoming versions, but so glad to know it is being looked at. :slight_smile:

If I may augment?

1.24.2 will have it.

I have shared an internal (official) build of what’s coming
as well as my Google drive repackage of past official.

We are a few days away now.

2 Likes

Fantastic! Thanks!

If your Plex folder gets too big for backups, you can do what I do and take a backup of the database & important metadata. Most importantly, leaving out the generated chapter images and index files for live scrolling.

cd "/volume1/@apphome/PlexMediaServer/Plex Media Server"
zip -q -FS "/volume1/MySharedFolder/backup-plex-databases.zip" . Preferences.xml* Plug\-in\ Support/Databases/*.db
zip -q -r -FS "/volume1/MySharedFolder/backup-plex-metadata.zip" . -x "Preferences.xml*" "Cache/*" "Crash Reports/*" "Logs/*" "Plug-in Support/Caches/*" "Plug-in Support/Databases/*" "*/Chapters/*.jpg" "*/Indexes/*.bif"

But if you’re not so much into scripting a bash file like this, waiting for the structure to become visible again inside DSM is probably the way to go.

1 Like

I put the 1.24.2.4955 (alpha) build of PMS up for us to use.

  1. It’s pre-official QA testing. It seems OK but still might have issues functionally

  2. Packaging wise — SOLID! :partying_face:

3 Likes

The header in that thread still says “Release Candidate” :slight_smile:

When they publish it on Plex.tv, the thread will go away. :slight_smile:

PS: My post does say “alpha”

How are people backing up Plex setting in DSM 7?
Does the Plex Server still need to be stopped prior to backing up the settings in DSM 7.

Under DSM 6, I used the script command:

“/var/packages/Plex Media Server/scripts/start-stop-status” stop

to stop the Plex server before using tar to backup the plex settings.

Under DMS 7, I changed the command to:

“/var/packages/PlexMediaServer/scripts/start-stop-status” stop

This appeared to work as Package Centre says “Run” (ie not running) for Plex. However, the Plex server is still running and accessible.

Any ideas how to backup Plex Server settings correctly?

2 Likes

Yes, please someone let us know how to backup up Plex library and settings with DSM 7

Thank you!!!

Backups on DSM 7 are very easy now.

  1. Stop Plex
  2. Using HyperBackup (or any approved Synology app)
  3. Make a full backup of the “PlexMediaServer” shared folder.
  4. After backup is complete, Start Plex.

If you want automation to perform the stopping and starting , you must use the synopackage command.

Directly accessing start-stop-status can only stop plex. It cannot start Plex correctly in the new DSM 7 environment.

1 Like

Thank you!!

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