@@ -78,7 +78,7 @@ bool temp_slot = false;
7878bool backup_logs = false;
7979bool smooth_checkpoint ;
8080char * remote_agent ;
81-
81+ static char * backup_note = NULL ;
8282/* restore options */
8383static char * target_time = NULL ;
8484static char * target_xid = NULL ;
@@ -177,6 +177,7 @@ static ConfigOption cmd_options[] =
177177 { 'b' , 183 , "delete-expired" , & delete_expired , SOURCE_CMD_STRICT },
178178 { 'b' , 184 , "merge-expired" , & merge_expired , SOURCE_CMD_STRICT },
179179 { 'b' , 185 , "dry-run" , & dry_run , SOURCE_CMD_STRICT },
180+ { 's' , 238 , "note" , & backup_note , SOURCE_CMD_STRICT },
180181 /* restore options */
181182 { 's' , 136 , "recovery-target-time" , & target_time , SOURCE_CMD_STRICT },
182183 { 's' , 137 , "recovery-target-xid" , & target_xid , SOURCE_CMD_STRICT },
@@ -769,7 +770,7 @@ main(int argc, char *argv[])
769770 elog (ERROR , "required parameter not specified: BACKUP_MODE "
770771 "(-b, --backup-mode)" );
771772
772- return do_backup (start_time , no_validate , set_backup_params , no_sync );
773+ return do_backup (start_time , no_validate , set_backup_params , no_sync , backup_note );
773774 }
774775 case RESTORE_CMD :
775776 return do_restore_or_validate (current .backup_id ,
0 commit comments