Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Cluster struct { Storage struct { VolumeGroup string `json:"volumeGroup"` LogicalVolume string `json:"logicalVolume"` FileSystem string `json:"fileSystem"` } `json:"storage"` Snapshot struct { MountPath string `json:"mountPath"` Opts string `json:"opts"` SnapshotName string `json:"snapshotName"` Size string `json:"size"` } `json:"snapshot"` ReplicaConfs []string `json:"replicaConfs"` } `json:"cluster"` S3 struct { Bucket string `json:"bucket"` ObjectPath string `json:"objectPath"` } `json:"s3"` }
Config describes the configuration of a MongoD host and the attributes necessary for performing an LVM snapshot and subsequent backup
func BackupConfig ¶
BackupConfig converts a yaml config describing a MongoD Host's storage configuration and replica set(s) and makes it available as a struct for the purpose of running a backup against its various replsets
Click to show internal directories.
Click to hide internal directories.