restic-scheduler/test/test.hcl
Ian Fijolek bdbd9fb722
All checks were successful
continuous-integration/drone/push Build is passing
Add health apis
2022-04-12 22:28:28 -07:00

42 lines
654 B
HCL

job "TestBackup" {
schedule = "* * * * *"
config {
repo = "test/data/backups"
passphrase = "supersecret"
options {
CacheDir = "test/data/cache"
}
}
task "create test data" {
pre_script {
on_backup = "echo test > test/data/data/test.txt"
}
}
task "backup phases" {
pre_script {
on_backup = "echo 'pre-backup'"
on_restore = "echo 'pre-restore'"
}
post_script {
on_backup = "echo 'post-backup'"
on_restore = "echo 'post-restore'"
}
}
backup {
paths = ["./test/data/data"]
restore_opts {
Target = "."
}
}
forget {
KeepLast = 2
}
}