all repos — dbee @ b22378184073ce48c49767ed1031a99e1e83166c

Move PostgreSQL backups using S3

handlers/psql/add.js (view raw)

 1const store = require("../../libs/config/store");
 2
 3const addPsql = params => {
 4  const {
 5    psqlName,
 6    host,
 7    username,
 8    useSSL,
 9    port,
10    password,
11    timescale,
12  } = params;
13  store("psql", psqlName, {
14    host,
15    username,
16    useSSL,
17    port,
18    password,
19    timescale,
20  });
21  console.log(`Postgres server ${psqlName} saved in config`);
22};
23
24module.exports = addPsql;