2022-10-27 21:28:34 +00:00
|
|
|
job "sonarr" {
|
2022-07-28 22:05:00 +00:00
|
|
|
schedule = "@daily"
|
2022-07-28 00:02:29 +00:00
|
|
|
|
|
|
|
config {
|
2022-10-27 21:28:34 +00:00
|
|
|
repo = "rclone::ftp,env_auth:/nomad/sonarr"
|
2022-07-28 00:02:29 +00:00
|
|
|
passphrase = env("BACKUP_PASSPHRASE")
|
|
|
|
}
|
|
|
|
|
|
|
|
backup {
|
2022-11-03 03:14:25 +00:00
|
|
|
# Not dunping sqlite because sonarr makes dumps
|
2022-10-27 21:28:34 +00:00
|
|
|
paths = ["/data/sonarr"]
|
2022-07-28 00:02:29 +00:00
|
|
|
# Because path is absolute
|
|
|
|
restore_opts {
|
|
|
|
Target = "/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
forget {
|
|
|
|
KeepLast = 2
|
|
|
|
Prune = true
|
|
|
|
}
|
|
|
|
}
|