@@ -78,7 +78,7 @@ bool temp_slot = false;
78
78
bool backup_logs = false;
79
79
bool smooth_checkpoint ;
80
80
char * remote_agent ;
81
-
81
+ static char * backup_note = NULL ;
82
82
/* restore options */
83
83
static char * target_time = NULL ;
84
84
static char * target_xid = NULL ;
@@ -177,6 +177,7 @@ static ConfigOption cmd_options[] =
177
177
{ 'b' , 183 , "delete-expired" , & delete_expired , SOURCE_CMD_STRICT },
178
178
{ 'b' , 184 , "merge-expired" , & merge_expired , SOURCE_CMD_STRICT },
179
179
{ 'b' , 185 , "dry-run" , & dry_run , SOURCE_CMD_STRICT },
180
+ { 's' , 238 , "note" , & backup_note , SOURCE_CMD_STRICT },
180
181
/* restore options */
181
182
{ 's' , 136 , "recovery-target-time" , & target_time , SOURCE_CMD_STRICT },
182
183
{ 's' , 137 , "recovery-target-xid" , & target_xid , SOURCE_CMD_STRICT },
@@ -769,7 +770,7 @@ main(int argc, char *argv[])
769
770
elog (ERROR , "required parameter not specified: BACKUP_MODE "
770
771
"(-b, --backup-mode)" );
771
772
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 );
773
774
}
774
775
case RESTORE_CMD :
775
776
return do_restore_or_validate (current .backup_id ,
0 commit comments