Server Version#: Version 1.31.1.6782
Player Version#: Version 4.100.1
Hello @ChuckPa,
I am trying to create a script to use with the Synology Task Scheduler to backup my plex database to another location. I am not a linux person but found a script that you posted.
I modified the source and destination but when I execute the script I got a backup file of only 164 bytes.
When I ran the script in the command line it created a backup of 168 mb’s.
Here is the script i am using.
# Plex Backup
#!/bin/sh
#
# Destination (set accordingly)
Destination="/volume1/My Home Data - Volume 1/Computers/Operating Systems/Synology/Plex"
# Backup Plex (DSM 7)
cd /volume1/PlexMediaServer/AppData/Plex Media Server/Plug-in Support
# Do it
tar cvzf "$Destination/PlexDatabase-Backup.tar.gz 'Databases'" ./*
Here is the command line that I used.
tar cvzf PlexDatabaseBackup.tar.gz …/…/…/…/…/volume1/PlexMediaServer/AppData/Plex\ Media\ Server/‘Plug-in Support’/‘Databases’
Thanks Chuck, I got it to work.
It is really comforting having a backup of my database.
Perhaps you would want to post this to the top of the forum for others users?