autorestic/internal/cron.go
2021-04-16 22:02:25 +02:00

13 lines
184 B
Go

package internal
func RunCron() error {
c := GetConfig()
for name, l := range c.Locations {
l.name = name
if err := l.RunCron(); err != nil {
return err
}
}
return nil
}