summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_system_backup_job
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2024-02-26 14:33:02 (GMT)
committerBritney Fransen <brfransen@gmail.com>2024-02-26 14:33:02 (GMT)
commit0d0b800e06d9a9cff6ca1c6faa950223b338a312 (patch)
treeb8573ec602fb97c3f8fa7b7a9b0f2228d6835ac0 /linhes/linhes-system/lh_system_backup_job
parentd2df77db24f6d829cc81fcd402c7dc262f1a5707 (diff)
downloadlinhes_pkgbuild-0d0b800e06d9a9cff6ca1c6faa950223b338a312.zip
linhes_pkgbuild-0d0b800e06d9a9cff6ca1c6faa950223b338a312.tar.gz
linhes_pkgbuild-0d0b800e06d9a9cff6ca1c6faa950223b338a312.tar.bz2
linhes-system: lh_system_backup_job: limit plex db files to current in backup
Diffstat (limited to 'linhes/linhes-system/lh_system_backup_job')
-rwxr-xr-xlinhes/linhes-system/lh_system_backup_job8
1 files changed, 7 insertions, 1 deletions
diff --git a/linhes/linhes-system/lh_system_backup_job b/linhes/linhes-system/lh_system_backup_job
index 536d105..6d16596 100755
--- a/linhes/linhes-system/lh_system_backup_job
+++ b/linhes/linhes-system/lh_system_backup_job
@@ -110,7 +110,13 @@ function backup(){
fi
if [ -e $PLEXDIR/Plex\ Media\ Server/Plug-in\ Support/Databases ]
then
- cp -rp $PLEXDIR/Plex\ Media\ Server/Plug-in\ Support/Databases $BACKUPDIR/$DATE/plex/Databases
+ mkdir -p $BACKUPDIR/$DATE/plex/Databases/
+ backup_status_check $?
+ cp -rp $PLEXDIR/Plex\ Media\ Server/Plug-in\ Support/Databases/*.db $BACKUPDIR/$DATE/plex/Databases/
+ backup_status_check $?
+ cp -rp $PLEXDIR/Plex\ Media\ Server/Plug-in\ Support/Databases/*.db-wal $BACKUPDIR/$DATE/plex/Databases/
+ backup_status_check $?
+ cp -rp $PLEXDIR/Plex\ Media\ Server/Plug-in\ Support/Databases/*.db-shm $BACKUPDIR/$DATE/plex/Databases/
backup_status_check $?
fi
if [ -e $PLEXDIR/Plex\ Media\ Server/Plug-in\ Support/Preferences ]