Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 620 Bytes

File metadata and controls

30 lines (24 loc) · 620 Bytes

dKsync

Package tools for import / export cron jobs using dKron API

Install

go get -v github.com/MGSousa/dKsync

Run

Use Cron Job Importer

package main

import "github.com/MGSousa/dKsync"

func main() {
	sync := dksync.CronSync {
		Concurrency:        "allow",
		DisableJob:         false,
		Tags:               "{\"mytag\":\"true\"}",
		Executor:           "shell",
		Processor: 	    map[string]map[string]string{"plugin": {...}},
		Retries:      	    1,
		DryRun: 	    true,
	}
	sync.JobsProcessor("/var/spool/cron/crontabs/root")
}