From db58c82f4296b731d818cf277b17fc1b8c9958ac Mon Sep 17 00:00:00 2001 From: Tyler Date: Tue, 29 Sep 2020 20:11:18 -0500 Subject: [PATCH] add restore script --- backupscripts/restore | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 backupscripts/restore diff --git a/backupscripts/restore b/backupscripts/restore new file mode 100755 index 0000000..28948be --- /dev/null +++ b/backupscripts/restore @@ -0,0 +1,5 @@ +#!/bin/sh + +FILENAME=$(ls -1t /mnt/media/plexsync/plexdb* | head -1) +sqlite3 /config/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db ".restore $FILENAME" +