restructure and include Makefile
This commit is contained in:
21
cmd/thanks/main.go
Normal file
21
cmd/thanks/main.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.gentoo.party/sam/thanks/internal/jobs"
|
||||
)
|
||||
|
||||
func main() {
|
||||
myJob := jobs.BackupJob{
|
||||
Source: "zroot/home/sam/thanks",
|
||||
Target: "zrust/backup/weller/thanks",
|
||||
TargetHost: "backup@woodford.gentoo.party",
|
||||
Keep: 30,
|
||||
Prefix: "thanks-",
|
||||
Recursive: false,
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
myJob.Do(ctx)
|
||||
}
|
||||
Reference in New Issue
Block a user