Skip to content
/ dKsync Public

Provides tools for import / export cron jobs from dKron

Notifications You must be signed in to change notification settings

MGSousa/dKsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")
}

About

Provides tools for import / export cron jobs from dKron

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages