1
0
Fork 0

Add auto-backup command line option

master
Philip O'Toole 1 year ago
parent 4523fa1b40
commit 3ca9f23225

@ -52,6 +52,9 @@ type Config struct {
// AuthFile is the path to the authentication file. May not be set.
AuthFile string
// AutoBackupFile is the path to the auto-backup file. May not be set.
AutoBackupFile string
// HTTPx509CACert is the path to the CA certficate file for when this node verifies
// other certificates for any HTTP communications. May not be set.
HTTPx509CACert string
@ -395,6 +398,7 @@ func ParseFlags(name, desc string, build *BuildInfo) (*Config, error) {
flag.BoolVar(&config.NoNodeVerify, "node-no-verify", false, "Skip verification of any node-node certificate")
flag.BoolVar(&config.NodeVerifyClient, "node-verify-client", false, "Enable mutual TLS for node-to-node communication")
flag.StringVar(&config.AuthFile, "auth", "", "Path to authentication and authorization file. If not set, not enabled")
flag.StringVar(&config.AutoBackupFile, "auto-backup", "", "Path to automatic backup configuration file. If not set, not enabled")
flag.StringVar(&config.RaftAddr, RaftAddrFlag, "localhost:4002", "Raft communication bind address")
flag.StringVar(&config.RaftAdv, RaftAdvAddrFlag, "", "Advertised Raft communication address. If not set, same as Raft bind")
flag.StringVar(&config.JoinSrcIP, "join-source-ip", "", "Set source IP address during HTTP Join request")

Loading…
Cancel
Save