restic-scheduler/itest/test-backup.hcl
Ian Fijolek 28f081c8d0
All checks were successful
continuous-integration/drone/push Build is passing
Add integration testing to verify backup and restoration
Including databases
2023-08-02 14:55:14 -07:00

30 lines
467 B
HCL

job "IntegrationTest" {
schedule = "@daily"
config {
repo = "/repo"
passphrase = "shh"
}
mysql "MySQL" {
hostname = env("MYSQL_HOST")
database = "main"
username = env("MYSQL_USER")
password = env("MYSQL_PWD")
dump_to = "/tmp/mysql.sql"
}
sqlite "SQLite" {
path = "/data/test_database.db"
dump_to = "/data/test_database.db.bak"
}
backup {
paths = ["/data"]
restore_opts {
Target = "/"
}
}
}