Browse Source

Fix temporary error logs paths build with DBHOST parameter (Debian patch 17_fix_logfiles_path)

Emmanuel Bouthenot 5 years ago
parent
commit
73f4137d7c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      autopostgresqlbackup

+ 2 - 2
autopostgresqlbackup

@@ -296,8 +296,8 @@ DOM=`date +%d`					# Date of the Month e.g. 27
 M=`date +%B`					# Month e.g January
 W=`date +%V`					# Week Number e.g 37
 VER=1.0							# Version Number
-LOGFILE=$BACKUPDIR/$DBHOST-`date +%N`.log			# Logfile Name
-LOGERR=$BACKUPDIR/ERRORS_$DBHOST-`date +%N`.log		# Logfile Name
+LOGFILE=$BACKUPDIR/${DBHOST//\//_}-`date +%N`.log			# Logfile Name
+LOGERR=$BACKUPDIR/ERRORS_${DBHOST//\//_}-`date +%N`.log		# Logfile Name
 BACKUPFILES=""
 
 # Add --compress pg_dump option to $OPT