编辑sys_backup.conf vim /KingbaseES/V8/Server/bin/sys_backup.conf
# target db style enum: single/cluster/single-pro_target_db_style="single"# one kingbase node IP/hostname# just provide one IP/hostname, script will use 'repmgr cluster show' get other node IP/hostname_one_db_ip="127.0.0.1"# local repo IP/hostname, inner-REPO, means repo located in one db node# outer repo IP/hostname, outer-REPO, means repo located in outer node_repo_ip="127.0.0.1"# label of this cluster_stanza_name="kingbase"# OS user name of database_os_user_name="kingbase"# !!!! dir to store the backup files# should be accessable for the OS user_repo_path="/backup/rman"# count of keep, over the count FULL-backup will be remove_repo_retention_full_count=5# count of days, interval to do FULL-backup_crond_full_days=7# count of days, interval to do DIFF-backup_crond_diff_days=0# count of days, interval to do INCR-backup_crond_incr_days=1# HOUR to do the FULL-backup_crond_full_hour=2# HOUR to do the DIFF-backup_crond_diff_hour=3# HOUR to do the INCR-backup_crond_incr_hour=4# band witdh limit, fixed in Mb/s, default 0 means no limit_band_width=0# OS cmd define_os_ip_cmd="/usr/sbin/ip"_os_rm_cmd="/bin/rm"_os_sed_cmd="/bin/sed"_os_grep_cmd="/bin/grep"# !!! these follow 4 parameter ONLY for single style# data dir of single_single_data_dir="/data"# bin dir of single_single_bin_dir="/KingbaseES/V8/Server/bin"# database user of single_single_db_user="system"# database port of single_single_db_port="54321"# on means sys_securecmd, off means normal ssh_use_scmd=off