restic-scheduler/test/test.hcl

45 lines
559 B
HCL
Raw Normal View History

2022-02-23 00:39:01 +00:00
job "TestBackup" {
schedule = "1 * * * *"
config {
repo = "./backups"
passphrase = "supersecret"
options {
CacheDir = "./cache"
}
}
task "before script" {
script {
on_backup = "echo before backup!"
}
}
task "backup" {
backup {
files = [
"./data"
]
backup_opts {
Tags = ["foo"]
}
restore_opts {
Target = "."
}
2022-02-23 00:39:01 +00:00
}
}
task "after script" {
script {
on_backup = "echo after backup!"
}
}
forget {
KeepLast = 2
}
}