viewgit/inc/functions.php:74 Function create_function() is deprecated [8192]
Filename | |
---|---|
check_pg_restore |
diff --git a/check_pg_restore b/check_pg_restore index 21c5aa5..8ca2d94 100755 --- a/check_pg_restore +++ b/check_pg_restore @@ -10,7 +10,12 @@ CRIT_SIZE=1000 verb=0 [ "$1" == "-v" ] && verb=1 +# Locale C last="`grep "restored log file" $LOG|tail -n 1|sed 's/.*restored log file "\([^"]*\)".*/\1/g'`" + +# Locale fr_FR +#last=$( grep "restauration du journal de transactions" /data/prod/pg_log/postgresql-14.log|tail -n 1|sed 's/.*restauration du journal de transactions « \([^ ]*\) ».*/\1/g' ) + [ $verb -eq 1 ] && echo "Last : $last" if [ ! -f $WAL/$last ] then