diff options
author | 2018-03-28 18:10:31 +0000 | |
---|---|---|
committer | 2018-03-28 18:10:31 +0000 | |
commit | 95a5bc9816c0bdf56b4ea6699004eb29940ddc6a (patch) | |
tree | ae77669442e877457c4bc3ff9a49b426bcd39742 /packages/base/src/files/install/mysql/bin/db_backup_remote.sh | |
parent | cb802d83533ff13886f08b6b9ecb8827bb86d90c (diff) | |
parent | 5cd57949604803a32bd3a19c183eadf11f0ab900 (diff) |
Merge "ONAP code change for log files consolidation"
Diffstat (limited to 'packages/base/src/files/install/mysql/bin/db_backup_remote.sh')
-rw-r--r-- | packages/base/src/files/install/mysql/bin/db_backup_remote.sh | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/base/src/files/install/mysql/bin/db_backup_remote.sh b/packages/base/src/files/install/mysql/bin/db_backup_remote.sh index 72f31c33a..212896942 100644 --- a/packages/base/src/files/install/mysql/bin/db_backup_remote.sh +++ b/packages/base/src/files/install/mysql/bin/db_backup_remote.sh @@ -70,19 +70,14 @@ if [ $# -eq 4 ]; then DB_PASSWORD="${2}" DATABASE="${3}" DB_HOSTNAME="${4}" - if [ -z ${POLICY_LOGS} ]; then - POLICY_LOGS=/var/log/onap - fi - mkdir -p $POLICY_LOGS/policy/db - LOG=$POLICY_LOGS/policy/db/db_backup_remote_$DATE.log - ERR=$POLICY_LOGS/policy/db/db_backup_remote_$DATE.err - echo "db_backup_remote.sh for [$DATABASE]@[${DB_HOSTNAME}] started ... `date`" | tee -a $LOG echo "DB_USER : $DB_USER" | tee -a $LOG echo "DATABASE : $DATABASE" | tee -a $LOG echo "DB_HOSTNAME: $DB_HOSTNAME" | tee -a $LOG DAILY_BACKUP_DIR=$POLICY_HOME/data/mysql/$DATE + LOG=$POLICY_HOME/logs/db_backup_remote_$DATE.log + ERR=$POLICY_HOME/logs/db_backup_remote_$DATE.err create_backup_dir backup_database |