parse job definitions from YAML file
This commit is contained in:
@@ -16,12 +16,12 @@ import (
|
||||
)
|
||||
|
||||
type BackupJob struct {
|
||||
Source string // the source dataset (e.g., zroot)
|
||||
TargetHost string // SSH-compatible host
|
||||
Target string // the target dataset
|
||||
Keep int // number of snapshots to keep
|
||||
Prefix string // name each snapshot with this prefix
|
||||
Recursive bool // create recursive snapshots
|
||||
Source string `yaml:"source"` // the source dataset (e.g., zroot)
|
||||
TargetHost string `yaml:"targetHost"` // SSH-compatible host
|
||||
Target string `yaml:"target"` // the target dataset
|
||||
Keep int `yaml:"keep"` // number of snapshots to keep
|
||||
Recursive bool `yaml:"recursive"` // create recursive snapshots
|
||||
Prefix string `yaml:"prefix"` // name each snapshot with this prefix
|
||||
}
|
||||
|
||||
// func (j *BackupJob) getBaseSnap() {
|
||||
|
||||
Reference in New Issue
Block a user