backup_dest_option specifies parameters related to backup.
Description
| Attribute | Description |
|---|---|
| Type | String |
| Default value | Empty string |
| Value range | N/A |
| Effective upon restart of OBServer node | 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 use the backup_dest_option parameter to specify the following backup parameters:
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_windowThe
recovery_windowparameter specifies 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 restore window is considered expired. For more information about therecovery_windowparameter, see Automatically clear backup data.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, indicating 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 directories based on a specific interval. Value range: [1d, 7d]. Default value:0, which specifies not to perform log splitting.You must configure this parameter to enable log splitting.
backup_copiesThe
backup_copiesparameter specifies the number of backup copies. Default value:0. If you do not specifybackup_backup_dest, we recommend that you set backup_copies to2. The valid value range of backup_copies is [0,8].If you set
backup_copiesto a value less than2, the system deletes backup data without considering whether its second backup is successful. If you setbackup_copiesto2, the system will only automatically clear backup data inbackup_destafter its second backup is saved tobackup_backup_dest. If second backup is not set, we recommend that you use the default value.
For more information about the backup parameters, see Preparations for backup.