@@ -170,7 +170,7 @@ pg_rman validate `date +%Y` --verbose > $BASE_PATH/results/log_validate2 2>&1
170
170
pg_rman restore -! --verbose --check> $BASE_PATH /results/log_restore_check_12>&1
171
171
172
172
# restore with pg_rman
173
- CUR_TLI=` pg_controldata| grep TimeLineID| awk' {print $4}' `
173
+ CUR_TLI=` pg_controldata| grep" Latest checkpoint's TimeLineID: " | awk' {print $4}' `
174
174
pg_rman restore -! --verbose> $BASE_PATH /results/log_restore1_12>&1
175
175
CUR_TLI_R=` grep" current timeline ID =" $BASE_PATH /results/log_restore1_1| awk' {print $5}' `
176
176
TARGET_TLI=` grep" target timeline ID =" $BASE_PATH /results/log_restore1_1| awk' {print $5}' `
@@ -193,7 +193,7 @@ pg_ctl stop -m immediate > /dev/null 2>&1
193
193
# restore check with pg_rman
194
194
pg_rman restore -! --verbose --check> $BASE_PATH /results/log_restore_check_22>&1
195
195
196
- CUR_TLI=` pg_controldata| grep TimeLineID| awk' {print $4}' `
196
+ CUR_TLI=` pg_controldata| grep" Latest checkpoint's TimeLineID: " | awk' {print $4}' `
197
197
pg_rman restore -! --verbose> $BASE_PATH /results/log_restore1_22>&1
198
198
CUR_TLI_R=` grep" current timeline ID =" $BASE_PATH /results/log_restore1_2| awk' {print $5}' `
199
199
TARGET_TLI=` grep" target timeline ID =" $BASE_PATH /results/log_restore1_2| awk' {print $5}' `
@@ -241,7 +241,7 @@ pg_ctl stop -m immediate > /dev/null 2>&1
241
241
# restore check with pg_rman
242
242
pg_rman restore -! --verbose --check> $BASE_PATH /results/log_restore_check_32>&1
243
243
244
- CUR_TLI=` pg_controldata| grep TimeLineID| awk' {print $4}' `
244
+ CUR_TLI=` pg_controldata| grep" Latest checkpoint's TimeLineID: " | awk' {print $4}' `
245
245
pg_rman restore -! --recovery-target-xid$target_xid --recovery-target-inclusivefalse --verbose> $BASE_PATH /results/log_restore22>&1
246
246
CUR_TLI_R=` grep" current timeline ID =" $BASE_PATH /results/log_restore2| awk' {print $5}' `
247
247
TARGET_TLI=` grep" target timeline ID =" $BASE_PATH /results/log_restore2| awk' {print $5}' `