all repos — dbee @ ef17c0ff8508c7cd415693ebcd3e97003175e7dd

Move PostgreSQL backups using S3

cmds/psql/add.js (view raw)

 1const addPsql = require("../../handlers/psql/add");
 2
 3exports.command = "add <psqlName> <host>";
 4exports.desc = "Add Postgres servers";
 5exports.builder = function (yargs) {
 6  return yargs.options({
 7    username: {
 8      demandOption: true,
 9      alias: "u",
10      describe: "Username for the Postgres server",
11    },
12    password: {
13      alias: "P",
14      describe: "Password for the Postgres server (facultative)",
15    },
16    port: {
17      alias: "p",
18      describe: "Postgres server port",
19      default: 5432,
20    },
21    useSSL: {
22      alias: "s",
23      type: "boolean",
24      describe: "Use SSL for server connection",
25      default: false,
26    },
27    timescale: {
28      alias: "t",
29      type: "boolean",
30      describe: "Enable TimescaleDB management for the server",
31      default: false,
32    },
33  });
34};
35exports.handler = addPsql;