Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AwsStorage ¶
type AwsStorage struct { Archiver Archiver AccessKeyID string AccessSecret string Region string Bucket string }
AwsStorage represents the AWS storage
type Backup ¶
Backup archives dirs and save them in a storage
type BackupConfig ¶
type BackupConfig struct { Name string Description string `yaml:"description,omitempty"` Logfile string `yaml:"logfile,omitempty"` Storage BackupStorage Dirs []Dir `yaml:"dirs,omitempty"` }
BackupConfig represents types capable of read a config file
func ConfigLoad ¶
func ConfigLoad(input []byte) (*BackupConfig, error)
ConfigLoad will unmarshal and validate a config data
type BackupStorage ¶
type BackupStorage struct { Type string DestPath string `yaml:"dest_path,omitempty"` AwsRegion string `yaml:"aws_region,omitempty"` AwsBucket string `yaml:"aws_bucket,omitempty"` AwsKey string `yaml:"aws_key,omitempty"` AwsSecret string `yaml:"aws_secret,omitempty"` }
BackupStorage represents types capable of represent a backup storage
type LocalStorage ¶
LocalStorage represents the local storage
Click to show internal directories.
Click to hide internal directories.