summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/lh_system_backup_job
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-01-07 18:01:37 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-01-07 18:03:24 (GMT)
commit33671693297f177c4b30c30584ddb79359a3d0ed (patch)
tree79a66f1c9080f3149be39e6c82e0df8021e61fc9 /abs/core/LinHES-system/lh_system_backup_job
parentc2e98d262d9e6003dfe7aadee5713028fb4d27cb (diff)
downloadlinhes_pkgbuild-33671693297f177c4b30c30584ddb79359a3d0ed.zip
linhes_pkgbuild-33671693297f177c4b30c30584ddb79359a3d0ed.tar.gz
linhes_pkgbuild-33671693297f177c4b30c30584ddb79359a3d0ed.tar.bz2
LinHES-system: system restore/backup modifications.
- restore: Added support for partial restores. usuage: lh_system_restore $restore_file_name partial if partial is not in the cmd line, then a full restore will take place. Partial restore of a backup file: *stop mythbackend *save a copy of the current settings for the host. This only includes the settings table and storage group definitions. * save teh entire DB (just in case) *restore the full database from the backup file *restore the copy of the settings, taken from step 1. (This is needed to keep the current configured states consistent) *start mythbackend - backup, print the name of the resulting file refs #893
Diffstat (limited to 'abs/core/LinHES-system/lh_system_backup_job')
-rw-r--r--abs/core/LinHES-system/lh_system_backup_job4
1 files changed, 4 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/lh_system_backup_job b/abs/core/LinHES-system/lh_system_backup_job
index 3f82216..98d4168 100644
--- a/abs/core/LinHES-system/lh_system_backup_job
+++ b/abs/core/LinHES-system/lh_system_backup_job
@@ -2,6 +2,7 @@
#process that uses this system backup script
# - myth_mtc.py
# - supplemental web, process.py backup
+
MYTH_RUN_STATUS="1"
. /etc/profile
. /etc/systemconfig
@@ -44,6 +45,9 @@ function backup(){
/home/xymon/server/ext/hbnotes.py
chown nobody:nobody /data/srv/httpd/htdocs/hobbit/notes/* 2> /dev/null >/dev/null
fi
+ echo
+ echo "Created file:"
+ echo " $BACKUPDIR/backup.$DATE.tgz"
echo "########################################"
}