-
Notifications
You must be signed in to change notification settings - Fork 0
/
private.example.js
44 lines (33 loc) · 955 Bytes
/
private.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const { readFileSync } = require('fs'); // Used only for ssh privateKey
module.exports = {
// Save all auth for same host inside same object
// Optional, just for better organization
my_remote_machine: {
// SSH auth, used in all backup type
ssh: {
// Optional.
// SSH Private key file, required if password is not set
privateKey: readFileSync('/path/to/my/key'),
// Required.
// Hostname or IP of the remote host
host: '10.10.10.10',
// Required.
// SSH username
username: 'gramatik',
// Optional.
// SSH password, required if privateKey is not set
password: 'passwordBetterThanThis'
},
// MySQL authentication, used for "sql" backup type
mysql: {
// Required.
// MySQL username
username: 'gramatik',
// Required.
// MySQL password
password: 'passwordBetterThanThis'
},
// Sudo password, used in "sudo" key if you need sudo privileges
sudo: 'passwordBetterThanThis'
}
};