From c618893afd1aada170df93cefce8beb67698fcd8 Mon Sep 17 00:00:00 2001 From: bwtakacy Date: Mon, 13 Jul 2015 11:58:38 +0900 Subject: [PATCH] Show message in backup completion to suggest do validation. --- backup.c | 3 +++ expected/backup.out | 2 ++ 2 files changed, 5 insertions(+) diff --git a/backup.c b/backup.c index 88092c90..70046086 100644 --- a/backup.c +++ b/backup.c @@ -923,6 +923,9 @@ do_backup(pgBackupOption bkupopt) printf(_("========================================\n")); } + elog(INFO, "backup complete. Please execute 'pg_rman validate'" + " to verify the files are correctly copied."); + /* * Delete old files (archived WAL and serverlog) after update of status. */ diff --git a/expected/backup.out b/expected/backup.out index e500a53b..ef2877ff 100644 --- a/expected/backup.out +++ b/expected/backup.out @@ -84,6 +84,7 @@ NOTICE: There is no validated full backup with current timeline. Switching to fu NOTICE: pg_stop_backup complete, all required WAL segments have been archived INFO: copying archived WAL files INFO: copying server log files +INFO: backup complete. Please execute 'pg_rman validate' to verify the files are correctly copied. 0 1 1 @@ -100,6 +101,7 @@ INFO: copying database files NOTICE: pg_stop_backup complete, all required WAL segments have been archived INFO: copying archived WAL files INFO: copying server log files +INFO: backup complete. Please execute 'pg_rman validate' to verify the files are correctly copied. 0 1 1