diff options
Diffstat (limited to 'abs/core/LinHES-system')
-rw-r--r-- | abs/core/LinHES-system/lh_system_backup_job | 8 | ||||
-rw-r--r-- | abs/core/LinHES-system/lh_system_restore_job | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/abs/core/LinHES-system/lh_system_backup_job b/abs/core/LinHES-system/lh_system_backup_job index 61b05d7..65eb723 100644 --- a/abs/core/LinHES-system/lh_system_backup_job +++ b/abs/core/LinHES-system/lh_system_backup_job @@ -7,7 +7,7 @@ echo "#########################################################" echo "Starting backup " . /etc/profile . /etc/systemconfig -BACKUPDIR=/myth/system_backups +BACKUPDIR=/data/storage/disk0/backup/system_backups DELETE_DAYS=21 DATE=`date +%F_%H-%M` mkdir -p $BACKUPDIR/$DATE @@ -36,9 +36,9 @@ then rm -rf $BACKUPDIR/$DATE fi -if [ -f /data/srv/hobbit/server/ext/hbnotes.py ] +if [ -f /home/xymon/server/ext/hbnotes.py ] then - /data/srv/hobbit/server/ext/hbnotes.py + /home/xymon/server/ext/hbnotes.py chown nobody:nobody /data/srv/httpd/htdocs/hobbit/notes/* 2> /dev/null >/dev/null fi @@ -56,7 +56,7 @@ then echo "copying$BACKUPDIR/backup.$DATE.tgz to $localRemotedir " else /usr/bin/func ${RemoteBackupDir} copyfile -f $BACKUPDIR/backup.$DATE.tgz --remotepath $BACKUPDIR/backup.$DATE.tgz - + echo "copying$BACKUPDIR/backup.$DATE.tgz to ${RemoteBackupDir}:/data/database_backup/" fi $cmd diff --git a/abs/core/LinHES-system/lh_system_restore_job b/abs/core/LinHES-system/lh_system_restore_job index 9c66e2a..c926371 100644 --- a/abs/core/LinHES-system/lh_system_restore_job +++ b/abs/core/LinHES-system/lh_system_restore_job @@ -2,7 +2,7 @@ # This script is used to perform a quick restore of a database that was backed up via the nightly system backup # The restore only does the database it does NOT restore system files (even if they are in the backup file) # -BACKUPDIR=/myth/system_backups +BACKUPDIR=/data/storage/disk0/backup/system_backups backupfile=$1 function usage(){ |