2022-07-27 17:02:29 -07:00
|
|
|
job "lldap" {
|
2022-07-28 15:05:00 -07:00
|
|
|
schedule = "@daily"
|
2022-07-27 17:02:29 -07:00
|
|
|
|
|
|
|
config {
|
2022-07-27 22:04:22 -07:00
|
|
|
repo = "rclone::ftp,env_auth:/nomad/lldap"
|
2022-07-27 17:02:29 -07:00
|
|
|
passphrase = env("BACKUP_PASSPHRASE")
|
|
|
|
}
|
|
|
|
|
2022-11-02 20:14:25 -07:00
|
|
|
sqlite "Backup database" {
|
|
|
|
path = "/data/lldap/users.db"
|
|
|
|
dump_to = "/data/lldap/users.db.bak"
|
|
|
|
}
|
2022-07-27 17:02:29 -07:00
|
|
|
|
|
|
|
backup {
|
|
|
|
paths = ["/data/lldap"]
|
|
|
|
# Because path is absolute
|
|
|
|
restore_opts {
|
|
|
|
Target = "/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
forget {
|
|
|
|
KeepLast = 2
|
|
|
|
Prune = true
|
|
|
|
}
|
|
|
|
}
|