backup_dest_option specifies parameters related to backup.
Description
| Property | Description |
|---|---|
| Parameter type | String |
| Default value | Null string |
| Value range | N/A |
| Effective upon OBServer restart | No |
Example
obclient> ALTER SYSTEM SET backup_dest_option='log_archive_checkpoint_interval=5s&log_archive_piece_switch_interval=120s&backup_copies=2';
In the command:
log_archive_checkpoint_intervalspecifies the interval for log backup. If you do not specify this parameter, the value of the cluster-level configuration itemlog_archive_checkpoint_intervalis used. If you do not specify eitherbackup_dest_optionorlog_archive_checkpoint_interval, the default value120sis used. For more information aboutlog_archive_checkpoint_interval, see log_archive_checkpoint_interval.log_archive_piece_switch_intervalspecifies whether to automatically split the content of the log file directory into multiple directories based on a specific interval. The default value is0, indicating that no splitting is performed. The valid value range is [1d, 7d].backup_copiesspecifies how many copies of backup data must be retained for backup redundancy. The default value is1. If you have specifiedbackup_backup_dest, we recommend that you set backup_copies to2. The valid value range of backup_copies is [1,8].If you set
backup_copiesto1, the system deletes backup data without considering whether its secondary backup is successful. If you setbackup_copiesto2, the system will only automatically delete backup data inbackup_destafter its secondary backup has been saved tobackup_backup_dest.