From 0d0b800e06d9a9cff6ca1c6faa950223b338a312 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 26 Feb 2024 09:33:02 -0500 Subject: linhes-system: lh_system_backup_job: limit plex db files to current in backup --- linhes/linhes-system/PKGBUILD | 6 +++--- linhes/linhes-system/lh_system_backup_job | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD index efa7d35..c67f521 100755 --- a/linhes/linhes-system/PKGBUILD +++ b/linhes/linhes-system/PKGBUILD @@ -1,6 +1,6 @@ pkgname=linhes-system pkgver=9.0.0 -pkgrel=72 +pkgrel=74 arch=('x86_64') #install=$pkgname.install pkgdesc="Everything that makes LinHES a system" @@ -9,7 +9,7 @@ depends=('cronie' 'dbus-python' 'dvb-firmware' 'expect' 'flatpak' 'firefox' 'gla 'kdialog' 'libnotify' 'logrotate' 'linhes-templates' 'linhes-theme' 'mlocate' 'ncdu' 'python-dateutil' 'python-pytz' 'python-tzlocal' 'openssh' 'pacman-contrib' 'rsyslog' 'ttf-overlock' 'wget' 'x11vnc' - 'intel-media-driver' 'libva-intel-driver' 'libva-vdpau-driver') + 'intel-media-driver' 'libva-intel-driver' 'libva-vdpau-driver' 'pigz') binfiles="add_storage.py balance_storage_groups.py empty_storage_groups.py remove_storage.py checkXFSfrag.sh enableIRWake.sh idle.py lh_system_start.sh lh_notify-send lh_home_check.sh lh_myth_status.py lh_system_backup lh_system_backup_job @@ -38,7 +38,7 @@ sha256sums=('e6eaa2fb4819fa60cb05b4d2e7328d2914af3a73028a735ec4d56e7ece33ecc0' '87875d9e5f5ce18208f419698ce69b6bcbcd08955a57a4a13940e715af58b787' '93d664f4a46fda05d0f754d19df40cbda120e325b80c07092345b14763993833' 'a523388ffdc6f30f2dd2ef4803b21bded8a35bfded499dc66b786adec71840a3' - 'a287466f58b979970e91e6f54942d75d7a620b93b61b34114620b58bbc92c1c5' + '6ea7f807a29631e33629da14e7ca6481310f0416c5d6f8fb415a76fa90fb9b76' '91bdec992bb2c933e15625c181f2195c402060b879168ebf35944cb064c904b9' '5cacfdd02833e5a3130d765573e772e6bd5030336ba86239c5e4db5ffa36fc69' 'd51253c207d3315997d7122cb774c6d0fc38975c33e66bf416f0b1b95cf86e5b' 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 ] -- cgit v0.12