diff options
Diffstat (limited to 'linhes/linhes-system/lh_system_backup_job')
-rwxr-xr-x | linhes/linhes-system/lh_system_backup_job | 8 |
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 ] |