Skip to content

Commit

Permalink
Show message in backup completion to suggest do validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwtakacy committed Jul 13, 2015
1 parent b45bbfc commit c618893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 2 additions & 0 deletions expected/backup.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit c618893

Please sign in to comment.