borgmatic: add action

This commit is contained in:
vincent 2024-04-09 08:40:38 +02:00
parent 0b067cabca
commit 98c1d63962

View File

@ -18,6 +18,19 @@ job "borgmatic" {
}
task "borgmatic" {
action "manual-backup" {
command = "/usr/local/bin/borgmatic"
args = ["create",
"prune",
"--verbosity",
"1"
]
}
action "list-backup" {
command = "/usr/local/bin/borgmatic"
args = ["rlist"]
}
driver = "docker"
config {
image = "ghcr.service.consul:5000/borgmatic-collective/borgmatic"