7 lines
863 B
Plaintext
Executable File
7 lines
863 B
Plaintext
Executable File
wget https://raw.githubusercontent.com/Fmstrat/plex-db-sync/master/plex-db-sync
|
|
apt-get install sshfs sqlite3
|
|
mkdir -p /mnt/sshfs
|
|
sshfs -o allow_other,IdentityFile=~/.ssh/mediapc.pds -p 22 nwettstein@192.168.1.10:"D:\Plex\Plex Media Server\Plug-in Support\Databases" /mnt/sshfs
|
|
chmod +x plex-db-sync
|
|
./plex-db-sync --backup true --plex-db-1 "/mnt/sshfs/com.plexapp.plugins.library.db" --plex-start-1 "ssh -oStrictHostKeyChecking=no -i ~/.ssh/mediapc.pds nwettstein@192.168.1.10 net start "Plex Media Server"" --plex-stop-1 "ssh -oStrictHostKeyChecking=no -i ~/.ssh/mediapc.pds nwettstein@192.168.1.10 net stop "Plex Media Server"" --plex-db-2 "/mnt/data/docker/appdata/plex/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db" --plex-start-2 "sudo docker start plex" --plex-stop-2 "sudo docker stop plex"
|