diff options
author | James Meyer <james.meyer@operamail.com> | 2012-09-10 22:47:37 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-09-10 22:47:37 (GMT) |
commit | 8fb41ba7d7f748b856bb015edef6c10c2b098e91 (patch) | |
tree | a39f3800c34e2dc59f5141008ae30e0e4afada4a | |
parent | 64127038ec022ae71473719254c71f5efa79bf82 (diff) | |
download | linhes_pkgbuild-8fb41ba7d7f748b856bb015edef6c10c2b098e91.zip linhes_pkgbuild-8fb41ba7d7f748b856bb015edef6c10c2b098e91.tar.gz linhes_pkgbuild-8fb41ba7d7f748b856bb015edef6c10c2b098e91.tar.bz2 |
lh_system_backup and restore: update to match new dir structure.
-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(){ |