backup_dest_option specifies parameters related to backup.
Note
This parameter has been deprecated since OceanBase Database V4.0.0.
| Attribute | Description |
|---|---|
| Type | String |
| Default value | Empty string |
| Value range | N/A |
| Effective upon OBServer node restart | No |
Example
obclient> ALTER SYSTEM SET backup_dest_option='log_archive_checkpoint_interval=2m&log_archive_piece_switch_interval=1d&backup_copies=0';
You can set the following backup parameters by using the backup_dest_option parameter:
log_archive_checkpoint_intervalThe
log_archive_checkpoint_intervalparameter specifies the interval of generating log archive checkpoints for infrequently accessed partitions.Note
Partitions with data writes are archived by clog. Infrequently accessed partitions do not have data writes. Therefore, log archive checkpoints are generated to facilitate log archiving for infrequently accessed partitions.
If you do not specify this parameter for
backup_dest_option, the value of the cluster-levellog_archive_checkpoint_intervalis used by default. If you do not specify eitherbackup_dest_optionorlog_archive_checkpoint_interval, the default value120sis used. If bothbackup_dest_optionandlog_archive_checkpoint_intervalare specified, the value ofbackup_dest_optionis used. We recommend that you set this parameter forbackup_dest_option.recovery_windowrecovery_windowspecifies the time window for recovering backup data. The system determines whether backup data has expired based on the value of this parameter. For example, the configurationrecovery_window='7d'indicates that backup data within the last 7 days can be recovered, and the backup data beyond this recovery window is considered expired.If you do not specify this parameter for
backup_dest_option, the value of the cluster-levelbackup_recovery_windowis used by default. If you do not specify eitherbackup_dest_optionorbackup_recovery_window, the default value0is used, which indicates that backup data will never expire. If bothbackup_dest_optionandbackup_recovery_windoware specified, the value ofbackup_dest_optionis used. We recommend that you set this parameter forbackup_dest_option.When the backup expires, the system automatically clears it based on preset rules.
In the manual clearing mode, when the backup data expires, you can manually clear the data as the administrator.
auto_delete_obsolete_backupThe
auto_delete_obsolete_backupparameter specifies whether to enable automatic data clearing. When you setauto_delete_obsolete_backupto true, the system automatically clears expired backup data.If you do not specify this parameter for
backup_dest_option, the value of the cluster-levelauto_delete_expired_backupis used by default. If you do not specify eitherbackup_dest_optionorauto_delete_expired_backup, the default valuefalseis used, which indicates that expired backup data is not automatically cleared. If bothbackup_dest_optionandauto_delete_expired_backupare specified, the value ofbackup_dest_optionis used. We recommend that you set this parameter forbackup_dest_option.log_archive_piece_switch_intervalThe
log_archive_piece_switch_intervalparameter specifies whether to automatically split the log file directory into multiple subdirectories based on a specific interval. The default value is0, which indicates that log splitting is disabled. The valid value range is [1d,7d].You can configure this parameter to enable log splitting.
backup_copiesThe
backup_copiesparameter specifies the number of backup copies. The default value is0. If you have specifiedbackup_backup_dest, we recommend that you setbackup_copiesto2. The valid value range ofbackup_copiesis [0, 8].If you set
backup_copiesto a value less than2, the system deletes backup data without considering whether its secondary backup is successful. If you setbackup_copiesto2, the system will only automatically clear backup data inbackup_destafter its secondary backup is saved tobackup_backup_dest. If secondary backup is not set, we recommend that you use the default value.