-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.json
48 lines (48 loc) · 1.18 KB
/
config.example.json
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
45
46
47
48
{
"timezone": "Europe/Istanbul",
"dateFormat": "2006-01-02__15-04-05",
"logLevel": "info",
"backups": [
{
"name": "backup-title",
"cronExpr": "*/60 * * * * *",
"callbackUrl": "http://example.com/callback",
"deleteLocal": true,
"source": {
"type": "sftp",
"info": {
"host": "127.0.0.1",
"port": 22,
"user": "root",
"pass": "",
"privateKeyFile": "~/.ssh/custom_id_rsa",
"privateKeyPass": "",
"beforeCommands": [
"cd /opt/foo/bar",
"zip -r /tmp/backupper/$BACKUP_ID/foo_backup.zip ."
],
"downloads": [
"foo_backup.zip"
],
"afterCommands": [
"rm -rf /tmp/backupper/$BACKUP_ID/"
]
}
},
"destination": {
"type": "ftp",
"deleteAfterUpload": true,
"info": {
"host": "backup-ftp.example.com",
"port": 21,
"user": "root",
"pass": "p4ssw0rd",
"target": "/up/backups/foo/",
"limitByCount": 3,
"LimitBySize": 1073741824,
"limitByDate": "2 DAYS"
}
}
}
]
}