summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_system_backup
diff options
context:
space:
mode:
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 ]