autorestic/internal/cron.go

13 lines
184 B
Go
Raw Normal View History

2021-04-11 13:02:27 +00:00
package internal
func RunCron() error {
c := GetConfig()
2021-04-16 20:02:25 +00:00
for name, l := range c.Locations {
l.name = name
2021-04-11 22:17:29 +00:00
if err := l.RunCron(); err != nil {
2021-04-11 13:02:27 +00:00
return err
}
}
return nil
}