saviodesign
Dabbler
- Joined
- Apr 7, 2017
- Messages
- 21
Stop Plex services:service plexmediaserver-plexpass stop
Backup the data
Note: Default DB back up location = “ /usr/local/plexdata-plexpass/ “
Navigate to the DB
cd /usr/local/plexdata-plexpass/
Tarball/Zip the DB (archive for later)
tar -czvf plexbackup.tar.gz Plex\ Media\ Server
Note: Depending on the size of your Plex Database, this may take some time
Open a second terminal and navigate to the tar file
cd /mnt/pool1/iocage/jails/plex/root/usr/local/plexdata-plexpass
Move the file to an external location OUTSIDE the Jail so you can find it later:
mkdir /mnt/pool1/DB_backup
mv plexbackup.tar.gz /mnt/pool1/DB_backup/plexbackup.tar.gz
Create a new jail
To create a native (empty) jail watch the first 1:25 of this video for an easy tutorial: https://www.youtube.com/watch?v=B1eO1PP195U
Install Plex Pass
pkg install plexmediaserver-plexpass
sysrc plexmediaserver_plexpass_enable=YES
Or
Install via Plugin using common settings:
Set IP to: 192.168.1.35/24
Set simple Mount Points
Source Destination
/mnt/pool1/media /mnt/pool1/iocage/jails/plex/root/media
Create the metadata directory by starting and stopping Plex:
service plexmediaserver_plexpass start
service plexmediaserver_plexpass stop
Restore the backup data:
cp /mnt/pool1/DB_backup/plexbackup.tar.gz /mnt/pool1/iocage/jails/plex/root/usr/local/plexdata-plexpass/plexbackup.tar.gz
Navigate to the DB folder and untar the file
cd /usr/local/plexdata-plexpass
tar -xzvf plexbackup.tar.gz
Note: This may take some time as well
Start Plex:
service plexmediaserver_plexpass start