summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_system_backup
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2023-03-10 02:36:54 (GMT)
committerBritney Fransen <brfransen@gmail.com>2023-03-10 02:36:54 (GMT)
commit671639b525d1ccdd06b29756ba0ba2ea4178205c (patch)
treea09ee50c065628dfe182dc7a246ee3ae905ef758 /linhes/linhes-system/lh_system_backup
parentbf89bcadcae5053e80abd14ea03052ce3b1d607b (diff)
downloadlinhes_pkgbuild-671639b525d1ccdd06b29756ba0ba2ea4178205c.zip
linhes_pkgbuild-671639b525d1ccdd06b29756ba0ba2ea4178205c.tar.gz
linhes_pkgbuild-671639b525d1ccdd06b29756ba0ba2ea4178205c.tar.bz2
linhes-system: find_orphans.py: fixes for mythtv 33 and python3
misc_which_recorder.pl: fix for mythtv 33
Diffstat (limited to 'linhes/linhes-system/lh_system_backup')
-rwxr-xr-xlinhes/linhes-system/lh_system_backup11
1 files changed, 7 insertions, 4 deletions
diff --git a/linhes/linhes-system/lh_system_backup b/linhes/linhes-system/lh_system_backup
index f970f4f..b3df6e1 100755
--- a/linhes/linhes-system/lh_system_backup
+++ b/linhes/linhes-system/lh_system_backup
@@ -4,20 +4,23 @@ lh_notify-send "Starting Backup..."
#alert user the database will not be backed up
if [ $SystemType != MasterBackend -a $SystemType != Standalone ]
then
- lh_notify-send "This is not the Master backend.\n Skipping backup of database."
+ lh_notify-send "This is not the MasterBackend.\n Skipping backup of database."
fi
if [ $SystemType = MasterBackend -o $SystemType = Standalone ]
then
- backend_control.sh stop 127.0.0.1
+ lh_notify-send "Stopping MythBackend..."
+ systemctl stop mythbackend.service
fi
#do the backup
-lh_system_backup_job 2>&1 > /var/run/backup.log
+lh_notify-send "Starting system backup..."
+lh_system_backup_job 2>&1 > /var/log/system_backup.log
rc=$?
if [ $SystemType = MasterBackend -o $SystemType = Standalone ]
then
- backend_control.sh start 127.0.0.1
+ lh_notify-send "Starting MythBackend..."
+ systemctl start mythbackend.service
fi
if [ $rc = 0 ]