{{define "title"}}{{.Title}}{{end}} {{define "content"}} {{template "host_chrome" .}} {{$page := .Page}} {{$host := $page.Host}}

Each source group is a named bundle of paths plus the rule for how long its snapshots stick around. Schedules point at one or more groups — one restic backup runs per group, tagged by name so forget can apply retention cleanly.

+ New source group
{{if eq (len $page.Groups) 0}}

No source groups yet.

Create one to tell the agent what to back up. The group's name doubles as the snapshot tag.

{{else}}
{{range $i, $row := $page.Groups}} {{$g := $row.Group}}
{{$g.Name}}
{{$g.Name}} {{if $g.ConflictDimension}} keep-{{$g.ConflictDimension}} · cadence mismatch {{end}}
{{len $g.Includes}} include{{if ne (len $g.Includes) 1}}s{{end}} · {{len $g.Excludes}} exclude{{if ne (len $g.Excludes) 1}}s{{end}} · {{$g.RetentionPolicy.Summary}}
{{if eq $row.UsedBy 0}} used by 0 schedules {{else}} used by {{$row.UsedBy}} schedule{{if ne $row.UsedBy 1}}s{{end}} {{end}} {{if gt $row.SnapshotCount 0}} · {{$row.SnapshotCount}} snapshot{{if ne $row.SnapshotCount 1}}s{{end}}{{end}}
{{if and (gt (len $g.Includes) 0) (eq $host.Status "online")}}
Limit bandwidth for this run
KB/s
{{else}} {{end}} {{if gt $row.UsedBy 0}} {{else if eq (len $page.Groups) 1}} {{else}}
{{end}}
{{end}}
Run-now on a row dispatches one immediate backup using that group's paths and tag. Group name is used as the snapshot tag — renaming a group doesn't retag existing snapshots.
{{end}}
{{end}}