Add sqlite backup for lldap

This commit is contained in:
IamTheFij 2022-11-02 20:14:25 -07:00
parent 37e80980bc
commit 2d63d7e74d
2 changed files with 5 additions and 11 deletions

View File

@ -6,11 +6,10 @@ job "lldap" {
passphrase = env("BACKUP_PASSPHRASE")
}
# sqlite "Backup database" {
# path = "/data/lldap/users.db"
# # sqlite3 /data/lldap/users.db .backup /data/lldap/users.db.bak
# dump_to = "/data/lldap/users.db.bak"
# }
sqlite "Backup database" {
path = "/data/lldap/users.db"
dump_to = "/data/lldap/users.db.bak"
}
backup {
paths = ["/data/lldap"]

View File

@ -6,13 +6,8 @@ job "sonarr" {
passphrase = env("BACKUP_PASSPHRASE")
}
# sqlite "Backup database" {
# path = "/data/lldap/users.db"
# # sqlite3 /data/lldap/users.db .backup /data/lldap/users.db.bak
# dump_to = "/data/lldap/users.db.bak"
# }
backup {
# Not dunping sqlite because sonarr makes dumps
paths = ["/data/sonarr"]
# Because path is absolute
restore_opts {