You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
backy/backup.go

33 lines
583 B

package main
import (
"github.com/spf13/viper"
)
type commandBackup struct {
cmd string
args []string
}
type directory struct {
dst string
src string
}
type backup struct {
backupType string
local bool
commandToRunBefore commandBackup
commandToRunAfter commandBackup
directories directory
name string
}
func main() {
viper.AddConfigPath(".")
viper.SetConfigName("config") // name of config file (without extension)
viper.SetConfigType("yaml") // REQUIRED if the config file does not have the extension in the name
}