autorestic/internal/cron.go

12 lines
165 B
Go
Raw Normal View History

2021-04-11 15:02:27 +02:00
package internal
func RunCron() error {
c := GetConfig()
for _, l := range c.Locations {
2021-04-12 00:17:29 +02:00
if err := l.RunCron(); err != nil {
2021-04-11 15:02:27 +02:00
return err
}
}
return nil
}