Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config struct { // type ConfigStruct struct { URL string `yaml:"url"` Repo string `yaml:"repo"` Compress bool `yaml:"compress"` Username string `yaml:"user"` Password string `yaml:"pass"` Only []string `yaml:"only"` Ignore []string `yaml:"ignore"` NoData []string `yaml:"nodata"` Where []string `yaml:"where"` WhereMap map[string]string // for key => val lookups }
Config struct
View Source
var UserAgent = "MyBack client"
UserAgent string
Functions ¶
func CreateDirIfNotExists ¶
CreateDirIfNotExists will try create a directry if it does not exist
func ExtractPaths ¶
ExtractPaths will extract compressed backups and write a SQL file
func ParseConfig ¶
ParseConfig will set the encironment based on a config
Types ¶
type Database ¶
type Database struct { Database string `json:"database"` Create string `json:"create"` Tables []struct { Name string `json:"name"` Type string `json:"Type"` Rows int `json:"rows"` CreateTime string `json:"create_time"` Checksum int `json:"checksum"` Create string `json:"create"` CreateHash string `json:"create_hash"` } `json:"tables"` }
Database struct
Click to show internal directories.
Click to hide internal directories.