2023-08-02 20:59:59 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2023-08-02 22:05:04 +00:00
|
|
|
postgres "Postgres" {
|
|
|
|
hostname = env("PGSQL_HOST")
|
|
|
|
database = "main"
|
|
|
|
username = env("PGSQL_USER")
|
|
|
|
password = env("PGSQL_PASS")
|
|
|
|
create = true
|
|
|
|
dump_to = "/tmp/psql.sql"
|
|
|
|
}
|
|
|
|
|
2023-08-02 20:59:59 +00:00
|
|
|
sqlite "SQLite" {
|
|
|
|
path = "/data/test_database.db"
|
|
|
|
dump_to = "/data/test_database.db.bak"
|
|
|
|
}
|
|
|
|
|
|
|
|
backup {
|
|
|
|
paths = ["/data"]
|
|
|
|
|
|
|
|
restore_opts {
|
|
|
|
Target = "/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|