ITPub博客

首页 > 数据库 > > 命令行参考-帮助命令

命令行参考-帮助命令

作者:GaussDB_数据库 时间:2020-01-20 14:12:11 0 删除 编辑

功能

help命令用于提供SyncDataToStby.py工具支持的命令的帮助信息。

命令格式

python SyncDataToStby.py
--help | -h

参数说明

无

使用指南

无

命令示例

查看双集群自动备份恢复工具的帮助信息。

python SyncDataToStby.py --help
系统回显
multi_roach@lfgp000602258:~/db/bin/script> python SyncDataToStby.py -h
Usage:
python SyncDataToStby.py -h --help
python SyncDataToStby.py -t backup --config-file configFile
python SyncDataToStby.py -t restore --config-file configFile [--latest]
python SyncDataToStby.py -t stop-backup --config-file configFile [-F]
python SyncDataToStby.py -t stop-restore --config-file configFile [-F]
python SyncDataToStby.py -t show --config-file configFile
python SyncDataToStby.py -t show-cluster-role --config-file configFile
python SyncDataToStby.py -t switchover --config-file configFile --switchover-config-file switchoverConfigFile [--autosync]
python SyncDataToStby.py -t set-independent --config-file configFile --enable-write --enable-write-object object
python SyncDataToStby.py -t set-writable --config-file configFile
python SyncDataToStby.py -t check-standby-avaiable --config-file configFile
python SyncDataToStby.py -t build-all-standbys --config-file configFile
Common options:
-h --help Show this help, then exit.
-t The operation for backup, restore, stop-backup, stop-restore, show, switchover, set-independent, show-cluster-role, set-writable, check-standby-avaiable, build-all-standbys
--config-file The config file that include information that operation must to know.
-F Stop sync thread forcelly without waitting for backup or restore finished
--latest Restore from newest full backup to newest incremental backup
--autosync Start sync thread in new primary cluster and new standby cluster after switchover finished.
--switchover-config-file The new config file for switchovered cluster to sync data
--enable-write To enable cluster to be writable when set the cluster to be independent
--enable-write-object Which cluster to be independent. primary/standby
information in config-file:
life-cycle The validity of backup files
backuprestoreinfo-file The csv file that records backup information
username The cluster user name for primary and standby cluster
primary-env The primary cluster seperate environment file
standby-env The standby cluster seperate environment file
full-backup-exec-time-interval Time interval between each full backup, unit: min
backup-exec-time-interval Time interval between each incremental backup, unit: min
primary-host-ip The host that execute backup
media-type The media type of medium that restore backup files
parrallel-process The number of process that should be used. Range is (1~32)
compression-level The compression level that should be used for backup. Range is (~9)
primary-media-destination Media destination where the mediadata be stored in primary cluster
primary-metadata-destination Metadata destination where the metadata be stored in primary cluster
local-backup-flag The flag that means local backup exists
backup-port The master-port in which the primary executed backup
primary-cluster-logging-level Logging level for the log contents of backup thread:FATAL,ERROR,INFO,DEBUG
restore-interval Time interval between each restore, unit: min
restore-host-ip The host that execute restore
restore-media-destination Media destination where the mediadata be stored in standby cluster
restore-metadata-destination Metadata destination where the metadata be stored in standby cluster
restore-port The master-port in which the standby executed restore
standby-cluster-logging-level Logging level for the log contents of restore thread:FATAL,ERROR,INFO,DEBUG


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3157634/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: SQL语法-DROP ROLE
请登录后发表评论 登录
全部评论

注册时间:2020-01-06

  • 博文量
    2907
  • 访问量
    19306