Add scheduled rsync copy jobs
This commit is contained in:
+3
-1
@@ -14,6 +14,7 @@ import (
|
||||
"git.casaderoll.de/michael/urbm/internal/notify"
|
||||
"git.casaderoll.de/michael/urbm/internal/platform"
|
||||
"git.casaderoll.de/michael/urbm/internal/restic"
|
||||
"git.casaderoll.de/michael/urbm/internal/rsync"
|
||||
"git.casaderoll.de/michael/urbm/internal/scheduler"
|
||||
"git.casaderoll.de/michael/urbm/internal/secrets"
|
||||
"git.casaderoll.de/michael/urbm/internal/service"
|
||||
@@ -56,10 +57,11 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
rr := &restic.Runner{Binary: config.Settings.ResticPath, RuntimeDir: *runtimeDir, Secrets: secretStore, Log: log}
|
||||
rs := &rsync.Runner{Binary: config.Settings.RsyncPath}
|
||||
mounts := &platform.MountManager{RuntimeDir: *runtimeDir, Secrets: secretStore}
|
||||
workloads := &platform.WorkloadManager{RuntimeDir: *runtimeDir}
|
||||
notifier := ¬ify.Sender{Secrets: secretStore}
|
||||
svc, err := service.New(configStore, secretStore, rr, mounts, workloads, notifier, log)
|
||||
svc, err := service.New(configStore, secretStore, rr, rs, mounts, workloads, notifier, log)
|
||||
if err != nil {
|
||||
log.Error("initialize service", "error", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user